skip to Main Content

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

2

Answers


  1. You must use cache_time in answercallbackquery:
    See this link

    Login or Signup to reply.
  2. i got this error when i used

    ["callback_query"]["message"]["message_id"] 
    

    instead of

    ['callback_query']['id']
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search