mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-01 21:24:50 +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):
|
|||
)
|
||||
)
|
||||
|
||||
return r.count
|
||||
if isinstance(r, types.messages.Dialogs):
|
||||
return len(r.dialogs)
|
||||
else:
|
||||
return r.count
|
||||
|
|
|
|||
Loading…
Reference in a new issue