mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-05 14:54:51 +00:00
Fix get_dialogs_count breaking in case of less than 200 dialogs
This commit is contained in:
parent
08554633ce
commit
692073c856
1 changed files with 4 additions and 1 deletions
|
|
@ -48,4 +48,7 @@ class GetDialogsCount(BaseClient):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if isinstance(r, types.messages.Dialogs):
|
||||||
|
return len(r.dialogs)
|
||||||
|
else:
|
||||||
return r.count
|
return r.count
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue