From 51677543682a0be0b394fd29c90ee27d08154942 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Fri, 9 Feb 2018 13:10:02 +0100 Subject: [PATCH] Fix input_sender events' property not using cached value --- telethon/events/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telethon/events/__init__.py b/telethon/events/__init__.py index 697e8056..0697521f 100644 --- a/telethon/events/__init__.py +++ b/telethon/events/__init__.py @@ -314,7 +314,7 @@ class NewMessage(_EventBuilder): chat=self.input_chat ) - return self._client.get_input_entity(self.message.from_id) + return self._input_sender @property def sender(self): @@ -848,7 +848,7 @@ class MessageChanged(_EventBuilder): chat=self.input_chat ) - return self._client.get_input_entity(self.message.from_id) + return self._input_sender @property def sender(self):