pub enum InlineQueryResult {
Show 20 variants InlineQueryResultCachedAudio(InlineQueryResultCachedAudio), InlineQueryResultCachedDocument(InlineQueryResultCachedDocument), InlineQueryResultCachedGif(InlineQueryResultCachedGif), InlineQueryResultCachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif), InlineQueryResultCachedPhoto(InlineQueryResultCachedPhoto), InlineQueryResultCachedSticker(InlineQueryResultCachedSticker), InlineQueryResultCachedVideo(InlineQueryResultCachedVideo), InlineQueryResultCachedVoice(InlineQueryResultCachedVoice), InlineQueryResultArticle(InlineQueryResultArticle), InlineQueryResultAudio(InlineQueryResultAudio), InlineQueryResultContact(InlineQueryResultContact), InlineQueryResultGame(InlineQueryResultGame), InlineQueryResultDocument(InlineQueryResultDocument), InlineQueryResultGif(InlineQueryResultGif), InlineQueryResultLocation(InlineQueryResultLocation), InlineQueryResultMpeg4Gif(InlineQueryResultMpeg4Gif), InlineQueryResultPhoto(InlineQueryResultPhoto), InlineQueryResultVenue(InlineQueryResultVenue), InlineQueryResultVideo(InlineQueryResultVideo), InlineQueryResultVoice(InlineQueryResultVoice),
}
Expand description

This object represents an incoming inline query. When the user sends an empty query, your bot could return some default or trending results.

Variants§

§

InlineQueryResultCachedAudio(InlineQueryResultCachedAudio)

Represents a link to an mp3 audio file stored on the Telegram servers. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

§

InlineQueryResultCachedDocument(InlineQueryResultCachedDocument)

Represents a link to a file stored on the Telegram servers. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file.

§

InlineQueryResultCachedGif(InlineQueryResultCachedGif)

Represents a link to an animated GIF file stored on the Telegram servers. By default, this animated GIF file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with specified content instead of the animation.

§

InlineQueryResultCachedMpeg4Gif(InlineQueryResultCachedMpeg4Gif)

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound) stored on the Telegram servers. By default, this animated MPEG-4 file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

§

InlineQueryResultCachedPhoto(InlineQueryResultCachedPhoto)

Represents a link to a photo stored on the Telegram servers. By default, this photo will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

§

InlineQueryResultCachedSticker(InlineQueryResultCachedSticker)

Represents a link to a sticker stored on the Telegram servers. By default, this sticker will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the sticker.

§

InlineQueryResultCachedVideo(InlineQueryResultCachedVideo)

Represents a link to a video file stored on the Telegram servers. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

§

InlineQueryResultCachedVoice(InlineQueryResultCachedVoice)

Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the voice message.

§

InlineQueryResultArticle(InlineQueryResultArticle)

Represents a link to an article or web page.

§

InlineQueryResultAudio(InlineQueryResultAudio)

Represents a link to an mp3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.

§

InlineQueryResultContact(InlineQueryResultContact)

Represents a contact with a phone number. By default, this contact will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the contact.

§

InlineQueryResultGame(InlineQueryResultGame)

Represents a Game.

§

InlineQueryResultDocument(InlineQueryResultDocument)

Represents a link to a file. By default, this file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the file. Currently, only .PDF and .ZIP files can be sent using this method.

§

InlineQueryResultGif(InlineQueryResultGif)

Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

§

InlineQueryResultLocation(InlineQueryResultLocation)

Represents a location on a map. By default, the location will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the location.

§

InlineQueryResultMpeg4Gif(InlineQueryResultMpeg4Gif)

Represents a link to a video animation (H.264/MPEG-4 AVC video without sound). By default, this animated MPEG-4 file will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the animation.

§

InlineQueryResultPhoto(InlineQueryResultPhoto)

Represents a link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the photo.

§

InlineQueryResultVenue(InlineQueryResultVenue)

Represents a venue. By default, the venue will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the venue.

§

InlineQueryResultVideo(InlineQueryResultVideo)

Represents a link to a page containing an embedded video player or a video file. By default, this video file will be sent by the user with an optional caption. Alternatively, you can use input_message_content to send a message with the specified content instead of the video.

§

InlineQueryResultVoice(InlineQueryResultVoice)

Represents a link to a voice recording in an .ogg container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.

Trait Implementations§

Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Converts to this type from the input type.
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.