mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
parent
e390aea86e
commit
d7f2bd9030
@ -585,6 +585,7 @@ class Client(Methods, Scaffold):
|
||||
{c.id: c for c in diff.chats}
|
||||
))
|
||||
else:
|
||||
if diff.other_updates: # The other_updates list can be empty
|
||||
self.dispatcher.updates_queue.put_nowait((diff.other_updates[0], {}, {}))
|
||||
elif isinstance(updates, raw.types.UpdateShort):
|
||||
self.dispatcher.updates_queue.put_nowait((updates.update, {}, {}))
|
||||
|
@ -52,4 +52,4 @@ class DeletedMessagesHandler(Handler):
|
||||
super().__init__(callback, filters)
|
||||
|
||||
async def check(self, client: "pyrogram.Client", messages: List[Message]):
|
||||
return await super().check(client, messages[0])
|
||||
return await super().check(client, messages[0]) if messages else False # The messages list can be empty
|
||||
|
Loading…
Reference in New Issue
Block a user