diff --git a/pyrogram/methods/chats/get_dialogs.py b/pyrogram/methods/chats/get_dialogs.py index b437012b..487e8f8d 100644 --- a/pyrogram/methods/chats/get_dialogs.py +++ b/pyrogram/methods/chats/get_dialogs.py @@ -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):