mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 11:23:46 +03:00
Fix events.MessageDeleted setting readonly properties
This commit is contained in:
parent
4f5c6f1006
commit
8b4c8d30e7
|
@ -30,12 +30,5 @@ class MessageDeleted(EventBuilder):
|
|||
super().__init__(
|
||||
chat_peer=peer, msg_id=(deleted_ids or [0])[0]
|
||||
)
|
||||
if peer is None:
|
||||
# If it's not a channel ID, then it was private/small group.
|
||||
# We can't know which one was exactly unless we logged all
|
||||
# messages, but we can indicate that it was maybe either of
|
||||
# both by setting them both to True.
|
||||
self.is_private = self.is_group = True
|
||||
|
||||
self.deleted_id = None if not deleted_ids else deleted_ids[0]
|
||||
self.deleted_ids = deleted_ids
|
||||
|
|
Loading…
Reference in New Issue
Block a user