mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 12:59:46 +00:00
Implement _load_entities for all events
Follow-up of c902428af1
This means that now input_chat (and even chat_id) and
similar can be safely used, without needing get_input
This commit is contained in:
@@ -185,6 +185,10 @@ class UserUpdate(EventBuilder):
|
||||
|
||||
super()._set_client(client)
|
||||
|
||||
def _load_entities(self):
|
||||
self._sender, self._input_sender = self._get_entity_pair(self.sender_id)
|
||||
return super()._load_entities() and self._input_sender is not None
|
||||
|
||||
@property
|
||||
def user(self):
|
||||
"""Alias for `sender`."""
|
||||
|
Reference in New Issue
Block a user