answerWebAppQuery
Sets the result of a Web App interaction and sends the corresponding message to the originating chat, returning a SentWebAppMessage on success.
Instructions
Use this method to 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. On success, a SentWebAppMessage object is returned.
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 | An object describing the message to be sent | |
| web_app_query_id | Yes | Unique identifier for the query to be answered |