[][src]Enum telegram_bot::types::InlineQueryResult

pub enum InlineQueryResult {
    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),
}

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

impl Debug for InlineQueryResult[src]

impl From<InlineQueryResultArticle> for InlineQueryResult[src]

impl From<InlineQueryResultAudio> for InlineQueryResult[src]

impl From<InlineQueryResultCachedAudio> for InlineQueryResult[src]

impl From<InlineQueryResultCachedDocument> for InlineQueryResult[src]

impl From<InlineQueryResultCachedGif> for InlineQueryResult[src]

impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult[src]

impl From<InlineQueryResultCachedPhoto> for InlineQueryResult[src]

impl From<InlineQueryResultCachedSticker> for InlineQueryResult[src]

impl From<InlineQueryResultCachedVideo> for InlineQueryResult[src]

impl From<InlineQueryResultCachedVoice> for InlineQueryResult[src]

impl From<InlineQueryResultContact> for InlineQueryResult[src]

impl From<InlineQueryResultDocument> for InlineQueryResult[src]

impl From<InlineQueryResultGame> for InlineQueryResult[src]

impl From<InlineQueryResultGif> for InlineQueryResult[src]

impl From<InlineQueryResultLocation> for InlineQueryResult[src]

impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult[src]

impl From<InlineQueryResultPhoto> for InlineQueryResult[src]

impl From<InlineQueryResultVenue> for InlineQueryResult[src]

impl From<InlineQueryResultVideo> for InlineQueryResult[src]

impl From<InlineQueryResultVoice> for InlineQueryResult[src]

impl Serialize for InlineQueryResult[src]

Auto Trait Implementations

impl RefUnwindSafe for InlineQueryResult[src]

impl Send for InlineQueryResult[src]

impl Sync for InlineQueryResult[src]

impl Unpin for InlineQueryResult[src]

impl UnwindSafe for InlineQueryResult[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]