From 2863eb8cc9f4e1e25bffeec3d1539568dd306e48 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 27 Oct 2018 09:39:00 +0200 Subject: [PATCH] Fix raising local FloodWait missing request argument --- telethon/client/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/users.py b/telethon/client/users.py index 022e996b..e198303f 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -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()