2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-23 10:28:00 +00:00

Use a shorter if-expression (#621)

This commit is contained in:
Tuqay Abdullazade 2021-03-17 15:37:56 +04:00 committed by GitHub
parent 54b20875b9
commit 42b1865743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ class SetSlowMode(Scaffold):
await self.send( await self.send(
raw.functions.channels.ToggleSlowMode( raw.functions.channels.ToggleSlowMode(
channel=await self.resolve_peer(chat_id), channel=await self.resolve_peer(chat_id),
seconds=0 if seconds is None else seconds seconds=seconds or 0
) )
) )