Skip to content

answerWebAppQuery

Returns SentWebAppMessage

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.

Required: web_app_query_id, result

Try it
Token saved
Response

TypeScript example · @effect-ak/tg-bot-client
import { makeTgBotClient } from "@effect-ak/tg-bot-client"
const client = makeTgBotClient({ bot_token: "YOUR_BOT_TOKEN" })
const result = await client.execute("answer_web_app_query", {
web_app_query_id: "...",
result: { /* InlineQueryResult */ }
})

Parameters

web_app_query_id string Required
Unique identifier for the query to be answered.

result InlineQueryResult Required
A JSON-serialized object describing the message to be sent.

answerCallbackQuery · answerInlineQuery · answerPreCheckoutQuery · answerShippingQuery