Machine-readable version of this page: /method/bots.answerWebhookJSONQuery.md.
Answers a custom query; for bots only
boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.answerWebhookJSONQuery#e6213f4d query_id:long data:DataJSON = Bool;
| Name | Type | Description |
|---|---|---|
| query_id | long | Identifier of a custom query |
| data | DataJSON | JSON-serialized answer to the query |
| 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. |