mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24:51 +00:00
Fix IndexError when parsing empty nearby chats
This commit is contained in:
parent
95051d7fb1
commit
55f5a1a36c
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ class GetNearbyChats(BaseClient):
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not r.updates:
|
||||||
|
return []
|
||||||
|
|
||||||
chats = pyrogram.List([pyrogram.Chat._parse_chat(self, chat) for chat in r.chats])
|
chats = pyrogram.List([pyrogram.Chat._parse_chat(self, chat) for chat in r.chats])
|
||||||
peers = r.updates[0].peers
|
peers = r.updates[0].peers
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue