Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bad Request: query is too old and response timeout expired or query ID is invalid

Tags:

python

telepot

I have been working a lot on a telegram bot for a long time now, but when I press an inline key to receive the pop up with:

bot.answerCallbackQuery (aalex_id, text = 'Notification at top of screen)

I get this error:

TelegramError: (u'Bad Request: query is too old and response timeout expired or query ID is invalid ', 400

the query id is just correct, and it's not that old lol... I do not know what to do :c

like image 899
Vaykor MIP Avatar asked Jan 30 '26 04:01

Vaykor MIP


1 Answers

You must use cache_time in answercallbackquery: See this link

like image 104
k1developer Avatar answered Feb 01 '26 21:02

k1developer