answerWebAppQuery
Send a message to the originating chat after a user interacts with a Web App by setting the interaction result.
Instructions
Set the result of an interaction with a Web App and send a corresponding message on behalf of the user to the chat from which the query originated. Returns a SentWebAppMessage object on success.
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": "answerWebAppQuery"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | A JSON-serialized InlineQueryResult object describing the message to be sent. | |
| web_app_query_id | Yes | Unique identifier for the query to be answered. |