Skip to content
Permalink
Browse files
Fix opposite condition on .get_dialogs
  • Loading branch information
Lonami committed Oct 1, 2017
1 parent e717256 commit 62ea77cbeac7c42bfac85aa8766a1b5b35e3a76c
Showing with 1 addition and 1 deletion.
  1. +1 −1 telethon/telegram_client.py
@@ -274,7 +274,7 @@ def get_dialogs(self,
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

0 comments on commit 62ea77c

Please sign in to comment.