mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Fix-up previous commit overriding .action_message with None
This commit is contained in:
parent
801018fa9b
commit
d3d190f36e
|
@ -593,7 +593,7 @@ class ChatAction(_EventBuilder):
|
|||
"""
|
||||
def __init__(self, where, new_pin=None, new_photo=None,
|
||||
added_by=None, kicked_by=None, created=None,
|
||||
users=None, new_title=None, action_message=None):
|
||||
users=None, new_title=None):
|
||||
if isinstance(where, types.MessageService):
|
||||
self.action_message = where
|
||||
where = where.to_id
|
||||
|
@ -601,7 +601,6 @@ class ChatAction(_EventBuilder):
|
|||
self.action_message = None
|
||||
|
||||
super().__init__(chat_peer=where, msg_id=new_pin)
|
||||
self.action_message = action_message
|
||||
|
||||
self.new_pin = isinstance(new_pin, int)
|
||||
self._pinned_message = new_pin
|
||||
|
|
Loading…
Reference in New Issue
Block a user