Update get_dialogs.py

This commit is contained in:
Joscha Götzer 2020-12-03 02:51:03 +01:00 committed by GitHub
parent b8934ae17c
commit ff0fa9cbc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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