From 8ee798af5e28d7372252c568db1dccadeb5511e2 Mon Sep 17 00:00:00 2001 From: Davte Date: Fri, 12 Jul 2019 12:40:20 +0200 Subject: [PATCH] Get inline_query_id from update --- davtelepot/bot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/davtelepot/bot.py b/davtelepot/bot.py index 02a9f10..3af0420 100644 --- a/davtelepot/bot.py +++ b/davtelepot/bot.py @@ -1060,6 +1060,8 @@ class Bot(TelegramBot, ObjectWithDatabase): If `results` is a string, cast it to proper type (list of dicts having certain keys). See utilities.make_inline_query_answer for details. """ + if inline_query_id is None and isinstance(update, dict): + inline_query_id = self.get_message_identifier(update) results = make_inline_query_answer(results) return await self.answerInlineQuery( inline_query_id=inline_query_id,