mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-24 16:24:15 +03:00
Fix .get_dialogs() being inconsistent with the return type
This commit is contained in:
parent
b252468ca2
commit
166d5a4012
|
@ -301,7 +301,7 @@ class TelegramClient(TelegramBareClient):
|
||||||
"""
|
"""
|
||||||
limit = float('inf') if limit is None else int(limit)
|
limit = float('inf') if limit is None else int(limit)
|
||||||
if limit == 0:
|
if limit == 0:
|
||||||
return [], []
|
return []
|
||||||
|
|
||||||
dialogs = OrderedDict() # Use peer id as identifier to avoid dupes
|
dialogs = OrderedDict() # Use peer id as identifier to avoid dupes
|
||||||
while len(dialogs) < limit:
|
while len(dialogs) < limit:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user