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

Sends a response to a user's inline query in Telegram, showing a list of results.

Inputs

  • inline_query_id (required) — Unique identifier for the answered query.
  • inline_results (required) — JSON array of InlineQueryResult objects describing the results to display.

Output shape

no body — success/failure only

Returns the Telegram API response (success or error).

Examples

Example 1: Respond to a user's inline search request with a list of articles.

Provide the query ID and an array of result objects with titles, URLs, and descriptions.

Links

Discussion