【问题标题】:Bad Request: query is too old and response timeout expired or query ID is invalid错误请求:查询太旧,响应超时或查询 ID 无效
【发布时间】:2020-02-27 21:49:04
【问题描述】:

我已经在电报机器人上工作了很长时间,但是当我按下内联键接收弹出窗口时:

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

我收到此错误:

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

查询 id 是正确的,而且它不是那么旧的大声笑... 我不知道该怎么办:c

【问题讨论】:

  • 告诉我问题中是否缺少某些东西:c
  • 我在检查错误日志时遇到了同样的问题,但在我的机器人中一切正常。

标签: python telepot


【解决方案1】:

您必须在 answercallbackquery 中使用 cache_time: See this link

【讨论】:

猜你喜欢
  • 2023-03-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-12-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多