mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Strictly check if sleep_threshold is None
This commit is contained in:
parent
d489157f22
commit
c0049ba43b
@ -74,7 +74,12 @@ class Send(Scaffold):
|
|||||||
if self.takeout_id:
|
if self.takeout_id:
|
||||||
data = raw.functions.InvokeWithTakeout(takeout_id=self.takeout_id, query=data)
|
data = raw.functions.InvokeWithTakeout(takeout_id=self.takeout_id, query=data)
|
||||||
|
|
||||||
r = await self.session.send(data, retries, timeout, sleep_threshold or self.sleep_threshold)
|
r = await self.session.send(
|
||||||
|
data, retries, timeout,
|
||||||
|
(sleep_threshold
|
||||||
|
if sleep_threshold is not None
|
||||||
|
else self.sleep_threshold)
|
||||||
|
)
|
||||||
|
|
||||||
await self.fetch_peers(getattr(r, "users", []))
|
await self.fetch_peers(getattr(r, "users", []))
|
||||||
await self.fetch_peers(getattr(r, "chats", []))
|
await self.fetch_peers(getattr(r, "chats", []))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user