HTTP 400 · Bad Request
QUERY_ID_INVALID
The query ID is invalid.
HTTP 400
Bots & Inline
When & why it happens
The supplied query id is malformed, points to nothing the server recognises, or fails a server-side validity check.
Handling in gogram
Surfaced as *gogram.ErrResponseCode. Match on the message:
if err, ok := err.(*gogram.ErrResponseCode); ok {
if err.Message == "QUERY_ID_INVALID" {
// handle this error
}
}
Related errors
BOT_APP_INVALIDThe specified bot app is invalid.BOT_APP_SHORTNAME_INVALIDThe specified bot app short name is invalid.BOT_CHANNELS_NABots can't edit admin privileges.BOT_COMMAND_DESCRIPTION_INVALIDThe specified command description is invalid.BOT_COMMAND_INVALIDThe specified command is invalid.BOT_DOMAIN_INVALIDBot domain invalid.BOT_GAMES_DISABLEDBot games cannot be used in this type of chat.BOT_GROUPS_BLOCKEDThis bot can't be added to groups.BOT_INLINE_DISABLEDThis bot can't be used in inline mode.BOT_INVALIDThis is not a valid bot.BOT_METHOD_INVALIDThe API access for bot users is restricted. This method cannot be executed as a bot.BOT_MISSINGOnly bots can call this method.