From 5e13a6f7a8b4518bc270ea8ee84ea43cd90c3bba Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Wed, 19 Sep 2018 16:42:22 +0200 Subject: [PATCH] Fix-up get_message failing for UpdateInlineBotCallbackQuery --- telethon/events/callbackquery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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