bots.answerWebhookJSONQuery

Answers a custom query; for bots only

 Method schema is available as of layer 62. Switch ยป

Parameters

Name Type Description
query_id long Identifier of a custom query
data DataJSON JSON-serialized answer to the query

Result

Bool

Possible errors

Code Type Description
400 DATA_JSON_INVALID The provided JSON data is invalid.
400 QUERY_ID_INVALID The query ID is invalid.
403 USER_BOT_INVALID User accounts must provide the bot method parameter when calling this method. If there is no such method parameter, this method can only be invoked by bot accounts.
400 USER_BOT_REQUIRED This method can only be called by a bot.

Bots can use this method