From 62ea77cbeac7c42bfac85aa8766a1b5b35e3a76c Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 1 Oct 2017 19:45:42 +0200 Subject: [PATCH] Fix opposite condition on .get_dialogs --- telethon/telegram_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index f3a5ff1b..57d8b759 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -274,7 +274,7 @@ class TelegramClient(TelegramBareClient): for c in r.chats: entities[c.id] = c - if isinstance(r, DialogsSlice): + if not isinstance(r, DialogsSlice): # Don't enter next iteration if we already got all break