mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 21:03:45 +03:00
Fix UpdateDeleteMessages doesn't have .channel_id (#619)
This commit is contained in:
parent
1eeedc613b
commit
bf086f3e80
|
@ -803,8 +803,12 @@ class MessageChanged(_EventBuilder):
|
||||||
if isinstance(update, (types.UpdateEditMessage,
|
if isinstance(update, (types.UpdateEditMessage,
|
||||||
types.UpdateEditChannelMessage)):
|
types.UpdateEditChannelMessage)):
|
||||||
event = MessageChanged.Event(edit_msg=update.message)
|
event = MessageChanged.Event(edit_msg=update.message)
|
||||||
elif isinstance(update, (types.UpdateDeleteMessages,
|
elif isinstance(update, types.UpdateDeleteMessages):
|
||||||
types.UpdateDeleteChannelMessages)):
|
event = MessageChanged.Event(
|
||||||
|
deleted_ids=update.messages,
|
||||||
|
peer=None
|
||||||
|
)
|
||||||
|
elif isinstance(update, types.UpdateDeleteChannelMessages):
|
||||||
event = MessageChanged.Event(
|
event = MessageChanged.Event(
|
||||||
deleted_ids=update.messages,
|
deleted_ids=update.messages,
|
||||||
peer=types.PeerChannel(update.channel_id)
|
peer=types.PeerChannel(update.channel_id)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user