[−][src]Enum telegram_bot::types::InlineQueryResult
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]
pub fn from(article: InlineQueryResultArticle) -> InlineQueryResult
[src]
impl From<InlineQueryResultAudio> for InlineQueryResult
[src]
pub fn from(audio: InlineQueryResultAudio) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedAudio> for InlineQueryResult
[src]
pub fn from(audio: InlineQueryResultCachedAudio) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedDocument> for InlineQueryResult
[src]
pub fn from(document: InlineQueryResultCachedDocument) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedGif> for InlineQueryResult
[src]
pub fn from(gif: InlineQueryResultCachedGif) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedMpeg4Gif> for InlineQueryResult
[src]
pub fn from(mpeg4_gif: InlineQueryResultCachedMpeg4Gif) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedPhoto> for InlineQueryResult
[src]
pub fn from(photo: InlineQueryResultCachedPhoto) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedSticker> for InlineQueryResult
[src]
pub fn from(sticker: InlineQueryResultCachedSticker) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedVideo> for InlineQueryResult
[src]
pub fn from(video: InlineQueryResultCachedVideo) -> InlineQueryResult
[src]
impl From<InlineQueryResultCachedVoice> for InlineQueryResult
[src]
pub fn from(voice: InlineQueryResultCachedVoice) -> InlineQueryResult
[src]
impl From<InlineQueryResultContact> for InlineQueryResult
[src]
pub fn from(contact: InlineQueryResultContact) -> InlineQueryResult
[src]
impl From<InlineQueryResultDocument> for InlineQueryResult
[src]
pub fn from(document: InlineQueryResultDocument) -> InlineQueryResult
[src]
impl From<InlineQueryResultGame> for InlineQueryResult
[src]
pub fn from(game: InlineQueryResultGame) -> InlineQueryResult
[src]
impl From<InlineQueryResultGif> for InlineQueryResult
[src]
pub fn from(gif: InlineQueryResultGif) -> InlineQueryResult
[src]
impl From<InlineQueryResultLocation> for InlineQueryResult
[src]
pub fn from(location: InlineQueryResultLocation) -> InlineQueryResult
[src]
impl From<InlineQueryResultMpeg4Gif> for InlineQueryResult
[src]
pub fn from(mpeg4_gif: InlineQueryResultMpeg4Gif) -> InlineQueryResult
[src]
impl From<InlineQueryResultPhoto> for InlineQueryResult
[src]
pub fn from(photo: InlineQueryResultPhoto) -> InlineQueryResult
[src]
impl From<InlineQueryResultVenue> for InlineQueryResult
[src]
pub fn from(venue: InlineQueryResultVenue) -> InlineQueryResult
[src]
impl From<InlineQueryResultVideo> for InlineQueryResult
[src]
pub fn from(video: InlineQueryResultVideo) -> InlineQueryResult
[src]
impl From<InlineQueryResultVoice> for InlineQueryResult
[src]
pub fn from(voice: InlineQueryResultVoice) -> InlineQueryResult
[src]
impl Serialize for InlineQueryResult
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,