* fixed: building event from UpdateDeleteMessages would fail due to the absence of the channel_id field for that type of update

This commit is contained in:
Max 2018-02-19 17:33:46 +03:00
parent 7258d359f1
commit 9f6f2c8d07

View File

@ -807,7 +807,7 @@ class MessageChanged(_EventBuilder):
types.UpdateDeleteChannelMessages)):
event = MessageChanged.Event(
deleted_ids=update.messages,
peer=types.PeerChannel(update.channel_id)
peer=types.PeerChannel(update.channel_id) if update.channel_id is not None else None
)
else:
return