mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-06 07:14:50 +00:00
Use a shorter if-expression (#621)
This commit is contained in:
parent
54b20875b9
commit
42b1865743
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue