Struct telbot_types::query::InlineQueryResult [−][src]
pub struct InlineQueryResult {
pub id: String,
pub kind: InlineQueryResultKind,
pub reply_markup: Option<InlineKeyboardMarkup>,
// some fields omitted
}Expand description
This object represents one result of an inline query.
Telegram clients currently support results of the following 20 types:
- InlineQueryResultCachedAudio
- InlineQueryResultCachedDocument
- InlineQueryResultCachedGif
- InlineQueryResultCachedMpeg4Gif
- InlineQueryResultCachedPhoto
- InlineQueryResultCachedSticker
- InlineQueryResultCachedVideo
- InlineQueryResultCachedVoice
- InlineQueryResultArticle
- InlineQueryResultAudio
- InlineQueryResultContact
- InlineQueryResultGame
- InlineQueryResultDocument
- InlineQueryResultGif
- InlineQueryResultLocation
- InlineQueryResultMpeg4Gif
- InlineQueryResultPhoto
- InlineQueryResultVenue
- InlineQueryResultVideo
- InlineQueryResultVoice
Note: All URLs passed in inline query results will be available to end users and therefore must be assumed to be public.
Fields
id: StringUnique identifier for this result, 1-64 bytes
kind: InlineQueryResultKindResult type
reply_markup: Option<InlineKeyboardMarkup>Inline keyboard attached to the message
Implementations
Set reply markup