mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-17 18:46:40 +00:00
Fix raising local FloodWait missing request argument
This commit is contained in:
parent
5beaf46e09
commit
2863eb8cc9
@ -31,7 +31,7 @@ class UserMethods(TelegramBaseClient):
|
||||
await asyncio.sleep(diff, loop=self._loop)
|
||||
self._flood_waited_requests.pop(r.CONSTRUCTOR_ID, None)
|
||||
else:
|
||||
raise errors.FloodWaitError(capture=diff)
|
||||
raise errors.FloodWaitError(r, capture=diff)
|
||||
|
||||
request_index = 0
|
||||
self._last_request = time.time()
|
||||
|
Loading…
Reference in New Issue
Block a user