mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-03-03 19:00:21 +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,
|
def __init__(self, where, new_pin=None, new_photo=None,
|
||||||
added_by=None, kicked_by=None, created=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):
|
if isinstance(where, types.MessageService):
|
||||||
self.action_message = where
|
self.action_message = where
|
||||||
where = where.to_id
|
where = where.to_id
|
||||||
|
@ -601,7 +601,6 @@ class ChatAction(_EventBuilder):
|
||||||
self.action_message = None
|
self.action_message = None
|
||||||
|
|
||||||
super().__init__(chat_peer=where, msg_id=new_pin)
|
super().__init__(chat_peer=where, msg_id=new_pin)
|
||||||
self.action_message = action_message
|
|
||||||
|
|
||||||
self.new_pin = isinstance(new_pin, int)
|
self.new_pin = isinstance(new_pin, int)
|
||||||
self._pinned_message = new_pin
|
self._pinned_message = new_pin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user