bots.answerWebhookJSONQuery #

Answers a custom query; for bots only

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;

Parameters #

NameTypeDescription
query_idlongIdentifier of a custom query
dataDataJSONJSON-serialized answer to the query

Result #

Bool

Only bots can use this method #

Possible errors #

CodeTypeDescription
400DATA_JSON_INVALIDThe provided JSON data is invalid.
400QUERY_ID_INVALIDThe query ID is invalid.
400USER_BOT_REQUIREDThis method can only be called by a bot.