answer_web_app_query
Send a result object to answer a web app query from Telegram. Provide the query ID and the JSON result to complete the interaction.
Instructions
Answer a Web App query sent via a Web App integration.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"web_app_query_id": "<web_app_query_id>",
"result": "<result>"
},
"name": "answer_web_app_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | JSON string with InlineQueryResult object to send | |
| web_app_query_id | Yes | Web App query ID from the WebAppInitData |