We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 70620a1 commit eea9f12Copy full SHA for eea9f12
1 file changed
pyrogram/session/session.py
@@ -31,7 +31,7 @@
31
from pyrogram.crypto import mtproto
32
from pyrogram.errors import (
33
RPCError, InternalServerError, AuthKeyDuplicated,
34
- FloodWait, FloodPremiumWait,
+ FloodWait,
35
ServiceUnavailable, BadMsgNotification,
36
SecurityCheckMismatch
37
)
@@ -407,7 +407,7 @@ async def invoke(
407
while True:
408
try:
409
return await self.send(query, timeout=timeout)
410
- except (FloodWait, FloodPremiumWait) as e:
+ except (FloodWait) as e:
411
amount = e.value
412
413
if amount > sleep_threshold >= 0:
0 commit comments