mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
* 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:
parent
7258d359f1
commit
9f6f2c8d07
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user