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

Sends a response to a Telegram Web App query initiated by a user.

Inputs

  • web_app_query_id (required) — Unique identifier for the Web App query to be answered.
  • web_app_result (required) — JSON object describing an InlineQueryResult to be returned to the user.

Output shape

a single record

Returns the result of the Telegram API call (typically an object containing the result).

Examples

Example 1: Respond to a user who completed a Web App form with a result.

Set web_app_query_id to the query ID received from the Web App event, and web_app_result to a valid InlineQueryResult object (e.g., an article, photo, or game).

Links

Discussion