2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-31 14:25:55 +00:00

Merge pull request #555 from JosXa/patch-1

Don't process MessageEmpty in get_dialogs
This commit is contained in:
Dan
2020-12-11 19:15:58 +01:00
committed by GitHub

View File

@@ -89,6 +89,9 @@ class GetDialogs(Scaffold):
messages = {}
for message in r.messages:
if isinstance(message, raw.types.MessageEmpty):
continue
peer_id = message.peer_id
if isinstance(peer_id, raw.types.PeerUser):