mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 03:22:29 +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:
@@ -101,6 +101,10 @@ class CallbackQuery(EventBuilder):
|
||||
self._message = None
|
||||
self._answered = False
|
||||
|
||||
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 id(self):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user