Telegram Bot icon

Telegram Bot

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

Actions101

Inline → Answer Inline Query

AI-generated

Summary

Send answers to Telegram inline queries by providing the query ID and an array of results in the required JSON format.

Inputs

  • Inline Query ID (required) — Unique identifier for the answered query
  • Results (JSON) (required) — JSON array of InlineQueryResult objects representing the results to be shown

Output shape

a list of items, each containing the API response to the answerInlineQuery request

Expects the 'inline_query_id' and 'results' parameters; returns the result field from Telegram's API response, which typically indicates success or error details.

Examples

Example 1: Answer an inline query with multiple results

Set the Inline Query ID to the identifier received in an incoming inline query, and provide a JSON array of InlineQueryResult objects defining results to display.

Links

Discussion