Skip to content

Commit 42b1865

Browse files
authored
Use a shorter if-expression (pyrogram#621)
1 parent 54b2087 commit 42b1865

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/methods/chats/set_slow_mode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ async def set_slow_mode(
5454
await self.send(
5555
raw.functions.channels.ToggleSlowMode(
5656
channel=await self.resolve_peer(chat_id),
57-
seconds=0 if seconds is None else seconds
57+
seconds=seconds or 0
5858
)
5959
)
6060

0 commit comments

Comments
 (0)