Layer 220
method Bots
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;

Parameters

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

Returns

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.
400 USER_BOT_REQUIRED This method can only be called by a bot.

Gogram Example

// BotsAnswerWebhookJsonQuery - positional arguments
result, err := client.BotsAnswerWebhookJsonQuery(int64(0), &tg.DataJson{})
if err != nil {
    // handle error
}
// result is *tg.Bool