Fix raising local FloodWait missing request argument

This commit is contained in:
Lonami Exo 2018-10-27 09:39:00 +02:00
parent 5beaf46e09
commit 2863eb8cc9

View File

@ -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()