We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d489157 commit c0049baCopy full SHA for c0049ba
pyrogram/methods/advanced/send.py
@@ -74,7 +74,12 @@ async def send(
74
if self.takeout_id:
75
data = raw.functions.InvokeWithTakeout(takeout_id=self.takeout_id, query=data)
76
77
- r = await self.session.send(data, retries, timeout, sleep_threshold or self.sleep_threshold)
+ r = await self.session.send(
78
+ data, retries, timeout,
79
+ (sleep_threshold
80
+ if sleep_threshold is not None
81
+ else self.sleep_threshold)
82
+ )
83
84
await self.fetch_peers(getattr(r, "users", []))
85
await self.fetch_peers(getattr(r, "chats", []))
0 commit comments