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:
parent
54b20875b9
commit
42b1865743
@ -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
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user