From 1db6f802f5794d8dd117ac0acad236908bf223c8 Mon Sep 17 00:00:00 2001 From: Andrebcd4 <45767571+Andrebcd4@users.noreply.github.com> Date: Tue, 24 Sep 2019 00:52:07 +0300 Subject: [PATCH] Functional slowmode error --- 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 685f6134..accdba77 100644 --- a/telethon/client/users.py +++ b/telethon/client/users.py @@ -82,7 +82,7 @@ class UserMethods: e.__class__.__name__, e) await asyncio.sleep(2) - except (errors.FloodWaitError, errors.FloodTestPhoneWaitError) as e: + except (errors.FloodWaitError, errors.SlowmodeWaitError, errors.FloodTestPhoneWaitError) as e: if utils.is_list_like(request): request = request[request_index]