mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 21:07:59 +00:00
Fix get_dialogs_count breaking in case of less than 200 dialogs
This commit is contained in:
parent
08554633ce
commit
692073c856
@ -48,4 +48,7 @@ class GetDialogsCount(BaseClient):
|
||||
)
|
||||
)
|
||||
|
||||
return r.count
|
||||
if isinstance(r, types.messages.Dialogs):
|
||||
return len(r.dialogs)
|
||||
else:
|
||||
return r.count
|
||||
|
Loading…
x
Reference in New Issue
Block a user