mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-31 06:16:06 +00:00
Merge pull request #555 from JosXa/patch-1
Don't process MessageEmpty in get_dialogs
This commit is contained in:
@@ -89,6 +89,9 @@ class GetDialogs(Scaffold):
|
|||||||
messages = {}
|
messages = {}
|
||||||
|
|
||||||
for message in r.messages:
|
for message in r.messages:
|
||||||
|
if isinstance(message, raw.types.MessageEmpty):
|
||||||
|
continue
|
||||||
|
|
||||||
peer_id = message.peer_id
|
peer_id = message.peer_id
|
||||||
|
|
||||||
if isinstance(peer_id, raw.types.PeerUser):
|
if isinstance(peer_id, raw.types.PeerUser):
|
||||||
|
Reference in New Issue
Block a user