Fix .get_dialogs() being inconsistent with the return type

This commit is contained in:
Lonami Exo 2017-12-27 23:45:48 +01:00 committed by Dmitry D. Chernov
parent b252468ca2
commit 166d5a4012

View File

@ -301,7 +301,7 @@ class TelegramClient(TelegramBareClient):
"""
limit = float('inf') if limit is None else int(limit)
if limit == 0:
return [], []
return []
dialogs = OrderedDict() # Use peer id as identifier to avoid dupes
while len(dialogs) < limit: