mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +03:00
Fix wrong super() args for events.MessageDeleted (fix #675)
This commit is contained in:
parent
055aa7fe43
commit
a596f88497
|
@ -1010,7 +1010,7 @@ class MessageDeleted(_EventBuilder):
|
||||||
class Event(_EventCommon):
|
class Event(_EventCommon):
|
||||||
def __init__(self, deleted_ids, peer):
|
def __init__(self, deleted_ids, peer):
|
||||||
super().__init__(
|
super().__init__(
|
||||||
types.Message((deleted_ids or [0])[0], peer, None, '')
|
chat_peer=peer, msg_id=(deleted_ids or [0])[0]
|
||||||
)
|
)
|
||||||
self.deleted_id = None if not deleted_ids else deleted_ids[0]
|
self.deleted_id = None if not deleted_ids else deleted_ids[0]
|
||||||
self.deleted_ids = deleted_ids
|
self.deleted_ids = deleted_ids
|
||||||
|
|
Loading…
Reference in New Issue
Block a user