Fix input_sender events' property not using cached value

This commit is contained in:
Lonami Exo 2018-02-09 13:10:02 +01:00
parent f5eda72329
commit 5167754368

View File

@ -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):