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:
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