mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-16 12:51:18 +00:00
Merge pull request #555 from JosXa/patch-1
Don't process MessageEmpty in get_dialogs
This commit is contained in:
commit
7efd0d1d4e
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user