2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 05:18:10 +00:00

Fix get_dialogs_count breaking in case of less than 200 dialogs

This commit is contained in:
Dan 2019-05-06 17:09:44 +02:00
parent 08554633ce
commit 692073c856

View File

@ -48,4 +48,7 @@ class GetDialogsCount(BaseClient):
)
)
if isinstance(r, types.messages.Dialogs):
return len(r.dialogs)
else:
return r.count