Раздел
Inline-режим
Inline mode
The following methods and objects allow your bot to work in inline mode.
Please see our Introduction to Inline bots for more details.
To enable this option, send the /setinline command to @BotFather and provide the placeholder text that the user will see in the input field after typing your bot's name.
Методы 1
| Метод | Статус | Описание |
|---|---|---|
answerInlineQuery | Поддерживается | Use this method to send answers to an inline query. |
Типы 31
| Тип | Описание |
|---|---|
InlineQuery | This object represents an incoming inline query. |
InlineQueryResultsButton | This object represents a button to be shown above inline query results. |
InlineQueryResult | This object represents one result of an inline query. |
InlineQueryResultArticle | Represents a link to an article or web page. |
InlineQueryResultPhoto | Represents a link to a photo. |
InlineQueryResultGif | Represents a link to an animated GIF file. |
InlineQueryResultMpeg4Gif | Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). |
InlineQueryResultVideo | Represents a link to a page containing an embedded video player or a video file. |
InlineQueryResultAudio | Represents a link to an MP3 audio file. |
InlineQueryResultVoice | Represents a link to a voice recording in an .OGG container encoded with OPUS. |
InlineQueryResultDocument | Represents a link to a file. |
InlineQueryResultLocation | Represents a location on a map. |
InlineQueryResultVenue | Represents a venue. |
InlineQueryResultContact | Represents a contact with a phone number. |
InlineQueryResultGame | Represents a Game . |
InlineQueryResultCachedPhoto | Represents a link to a photo stored on the Telegram servers. |
InlineQueryResultCachedGif | Represents a link to an animated GIF file stored on the Telegram servers. |
InlineQueryResultCachedMpeg4Gif | Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. |
InlineQueryResultCachedSticker | Represents a link to a sticker stored on the Telegram servers. |
InlineQueryResultCachedDocument | Represents a link to a file stored on the Telegram servers. |
InlineQueryResultCachedVideo | Represents a link to a video file stored on the Telegram servers. |
InlineQueryResultCachedVoice | Represents a link to a voice message stored on the Telegram servers. |
InlineQueryResultCachedAudio | Represents a link to an MP3 audio file stored on the Telegram servers. |
InputMessageContent | This object represents the content of a message to be sent as a result of an inline query. |
InputTextMessageContent | Represents the content of a text message to be sent as the result of an inline query. |
InputRichMessageContent | Represents the content of a rich message to be sent as the result of an inline query. |
InputLocationMessageContent | Represents the content of a location message to be sent as the result of an inline query. |
InputVenueMessageContent | Represents the content of a venue message to be sent as the result of an inline query. |
InputContactMessageContent | Represents the content of a contact message to be sent as the result of an inline query. |
InputInvoiceMessageContent | Represents the content of an invoice message to be sent as the result of an inline query. |
ChosenInlineResult | Represents a result of an inline query that was chosen by the user and sent to their chat partner. |