Don't process MessageEmpty in get_dialogs

Prevent
```
  File "C:\Users\INT002327\AppData\Local\pypoetry\Cache\virtualenvs\josxabot-c3BmTbt9-py3.8\lib\site-packages\pyrogram\methods\chats\get_dialogs.py", line 92, in get_dialogs
    to_id = message.to_id
            └ pyrogram.raw.types.MessageEmpty(id=2767691)

AttributeError: 'MessageEmpty' object has no attribute 'to_id'
```
This commit is contained in:
Joscha Götzer 2020-12-01 21:55:33 +01:00 committed by GitHub
parent 601483f210
commit b8934ae17c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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