From d3d190f36ecfb92b3ec0b48794070b1f0ea8cbe1 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 7 Mar 2018 17:57:54 +0100 Subject: [PATCH] Fix-up previous commit overriding .action_message with None --- telethon/events/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/telethon/events/__init__.py b/telethon/events/__init__.py index d84ed043..ec866dd5 100644 --- a/telethon/events/__init__.py +++ b/telethon/events/__init__.py @@ -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