diff --git a/telethon/events/callbackquery.py b/telethon/events/callbackquery.py index b1df3918..78416ced 100644 --- a/telethon/events/callbackquery.py +++ b/telethon/events/callbackquery.py @@ -140,7 +140,7 @@ class CallbackQuery(EventBuilder): try: chat = await self.get_input_chat() if self.is_channel else None self._message = await self._client.get_messages( - chat, ids=self.query.msg_id) + chat, ids=self._message_id) except ValueError: return