mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2026-09-08 01:41:59 +00:00
Stop using input version on events to just get the ID
This commit is contained in:
@@ -263,8 +263,7 @@ class NewMessage(EventBuilder):
|
||||
"""
|
||||
Returns the marked sender integer ID, if present.
|
||||
"""
|
||||
if self.input_sender:
|
||||
return utils.get_peer_id(self._input_sender)
|
||||
return self.message.from_id
|
||||
|
||||
@property
|
||||
def text(self):
|
||||
|
||||
Reference in New Issue
Block a user