Actions101
- Bot Actions
- Chat Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member Count
- Get Chat Member
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Administrator Custom Title
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Photo
- Delete Chat Photo
- Set Chat Title
- Set Chat Description
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Leave Chat
- Set Chat Menu Button
- Get Chat Menu Button
- Set Chat Sticker Set
- Delete Chat Sticker Set
- File Actions
- Forum Actions
- Game Actions
- Inline Actions
- Message Actions
- Send Message
- Forward Message
- Copy Message
- Send Photo
- Send Audio
- Send Document
- Send Video
- Send Animation
- Send Voice
- Send Video Note
- Send Media Group
- Send Location
- Send Venue
- Send Contact
- Send Poll
- Send Dice
- Send Chat Action
- Edit Message Text
- Edit Message Caption
- Edit Message Media
- Edit Message Reply Markup
- Edit Message Live Location
- Stop Message Live Location
- Stop Poll
- Delete Message
- Delete Messages
- Payment Actions
- Sticker Actions
- Update Actions
- Webhook Actions
Inline → Answer Web App Query
AI-generatedSummary
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.