Telegram Bot icon

Telegram Bot

Interact with the Telegram Bot API – send messages, manage chats, handle payments, and more

Actions101

Inline → Answer Web App Query

AI-generated

Summary

Answer a Web App query by sending a JSON object describing an InlineQueryResult to Telegram's answerWebAppQuery API method.

Inputs

  • Web App Query ID (required) — Unique identifier for the query to be answered.
  • Result (JSON) (required) — JSON object describing an InlineQueryResult to return as the answer.

Output shape

a single record containing the Telegram API response object

Returns the response from the Telegram API. The result is parsed and output as a JSON object. If multiple items are processed, outputs are returned correspondingly for each input item.

Examples

Example 1: Use this operation when your Telegram bot receives a Web App query and you want to respond with a specific InlineQueryResult JSON describing the answer.

Provide the Web App Query ID received and a JSON object describing the result (inline query result) to answer with.

Links

Discussion