mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Fix opposite condition on .get_dialogs
This commit is contained in:
parent
e717256937
commit
62ea77cbea
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user