InlineQueryResult

Enum InlineQueryResult 

Source
pub enum InlineQueryResult {
Show 20 variants Article { id: String, title: String, input_message_content: InputMessageContent, reply_markup: Option<InlineKeyboardMarkup>, url: Option<String>, hide_url: Option<bool>, description: Option<String>, thumb_url: Option<String>, thumb_width: Option<i64>, thumb_height: Option<i64>, }, CachedPhoto { id: String, photo_url: String, thumb_url: String, photo_width: Option<i64>, photo_height: Option<i64>, title: Option<String>, description: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, CachedGif {
Show 13 fields id: String, gif_url: String, gif_width: Option<i64>, gif_height: Option<i64>, gif_duration: Option<i64>, thumb_url: String, thumb_mime_type: Option<String>, title: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>,
}, CachedMpeg4Gif {
Show 13 fields id: String, mpeg4_url: String, mpeg4_width: Option<i64>, mpeg4_height: Option<i64>, mpeg4_duration: Option<i64>, thumb_url: String, thumb_mime_type: Option<String>, title: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>,
}, CachedVideo {
Show 14 fields id: String, video_url: String, mime_type: String, thumb_url: String, title: String, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, video_width: Option<i64>, video_height: Option<i64>, video_duration: Option<i64>, description: Option<String>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>,
}, CachedAudio { id: String, audio_url: String, title: String, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, performer: Option<String>, audio_duration: Option<i64>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, CachedVoice { id: String, voice_url: String, title: String, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, voice_duration: Option<i64>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, CachedDocument {
Show 13 fields id: String, title: String, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, document_url: String, mime_type: String, description: Option<String>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, thumb_url: Option<String>, thumb_width: Option<i64>, thumb_height: Option<i64>,
}, Location {
Show 13 fields id: String, latitude: f32, longitude: f32, title: String, horizontal_accuracy: Option<f32>, live_period: Option<i64>, heading: Option<i64>, proximity_alert_radius: Option<i64>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, thumb_url: Option<String>, thumb_width: Option<i64>, thumb_height: Option<i64>,
}, Venue {
Show 14 fields id: String, latitude: f32, longitude: f32, title: String, address: String, foursquare_id: Option<String>, foursquare_type: Option<String>, google_place_id: Option<String>, google_place_type: Option<String>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, thumb_url: Option<String>, thumb_width: Option<i64>, thumb_height: Option<i64>,
}, Contact { id: String, phone_number: String, first_name: String, last_name: Option<String>, vcard: Option<String>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, thumb_url: Option<String>, thumb_width: Option<i64>, thumb_height: Option<i64>, }, Game { id: String, game_short_name: String, reply_markup: Option<InlineKeyboardMarkup>, }, Photo { id: String, photo_file_id: String, title: Option<String>, description: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Gif { id: String, gif_file_id: String, title: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Mpeg4Gif { id: String, mpeg4_file_id: String, title: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Sticker { id: String, sticker_file_id: String, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Document { id: String, title: String, document_file_id: String, description: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Video { id: String, video_file_id: String, title: String, description: Option<String>, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Voice { id: String, voice_file_id: String, title: String, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, }, Audio { id: String, audio_file_id: String, caption: Option<String>, parse_mode: Option<String>, caption_entities: Vec<MessageEntity>, reply_markup: Option<InlineKeyboardMarkup>, input_message_content: Option<InputMessageContent>, },
}
Expand description

This object represents one result of an inline query. Telegram clients currently support results of the following 20 types:

Variants§

§

Article

Represents a link to an article or web page.

Fields

§id: String

Unique identifier for this result, 1-64 Bytes

§title: String

Title of the result

§input_message_content: InputMessageContent

Content of the message to be sent

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§url: Option<String>

URL of the result

§hide_url: Option<bool>

Pass True if you don’t want the URL to be shown in the message

§description: Option<String>

Short description of the result

§thumb_url: Option<String>

Url of the thumbnail for the result

§thumb_width: Option<i64>

Thumbnail width

§thumb_height: Option<i64>

Thumbnail height

§

CachedPhoto

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§photo_url: String

A valid URL of the photo. Photo must be in JPEG format. Photo size must not exceed 5MB

§thumb_url: String

URL of the thumbnail for the photo

§photo_width: Option<i64>

Width of the photo

§photo_height: Option<i64>

Height of the photo

§title: Option<String>

Title for the result

§description: Option<String>

Short description of the result

§caption: Option<String>

Caption of the photo to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the photo caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the photo

§

CachedGif

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§gif_url: String

A valid URL for the GIF file. File size must not exceed 1MB

§gif_width: Option<i64>

Width of the GIF

§gif_height: Option<i64>

Height of the GIF

§gif_duration: Option<i64>

Duration of the GIF in seconds

§thumb_url: String

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result

§thumb_mime_type: Option<String>

MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”

§title: Option<String>

Title for the result

§caption: Option<String>

Caption of the GIF file to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the GIF animation

§

CachedMpeg4Gif

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§mpeg4_url: String

A valid URL for the MPEG4 file. File size must not exceed 1MB

§mpeg4_width: Option<i64>

Video width

§mpeg4_height: Option<i64>

Video height

§mpeg4_duration: Option<i64>

Video duration in seconds

§thumb_url: String

URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result

§thumb_mime_type: Option<String>

MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”

§title: Option<String>

Title for the result

§caption: Option<String>

Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the video animation

§

CachedVideo

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. If an InlineQueryResultVideo message contains an embedded video (e.g., YouTube), you must replace its content using input_message_content.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§video_url: String

A valid URL for the embedded video player or video file

§mime_type: String

MIME type of the content of the video URL, “text/html” or “video/mp4”

§thumb_url: String

URL of the thumbnail (JPEG only) for the video

§title: String

Title for the result

§caption: Option<String>

Caption of the video to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the video caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§video_width: Option<i64>

Video width

§video_height: Option<i64>

Video height

§video_duration: Option<i64>

Video duration in seconds

§description: Option<String>

Short description of the result

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the video. This field is required if InlineQueryResultVideo is used to send an HTML-page as a result (e.g., a YouTube video).

§

CachedAudio

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§audio_url: String

A valid URL for the audio file

§title: String

Title

§caption: Option<String>

Caption, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the audio caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§performer: Option<String>

Performer

§audio_duration: Option<i64>

Audio duration in seconds

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the audio

§

CachedVoice

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§voice_url: String

A valid URL for the voice recording

§title: String

Recording title

§caption: Option<String>

Caption, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the voice message caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§voice_duration: Option<i64>

Recording duration in seconds

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the voice recording

§

CachedDocument

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§title: String

Title for the result

§caption: Option<String>

Caption of the document to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the document caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§document_url: String

A valid URL for the file

§mime_type: String

MIME type of the content of the file, either “application/pdf” or “application/zip”

§description: Option<String>

Short description of the result

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the file

§thumb_url: Option<String>

URL of the thumbnail (JPEG only) for the file

§thumb_width: Option<i64>

Thumbnail width

§thumb_height: Option<i64>

Thumbnail height

§

Location

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 Bytes

§latitude: f32

Location latitude in degrees

§longitude: f32

Location longitude in degrees

§title: String

Location title

§horizontal_accuracy: Option<f32>

The radius of uncertainty for the location, measured in meters; 0-1500

§live_period: Option<i64>

Period in seconds for which the location can be updated, should be between 60 and 86400.

§heading: Option<i64>

For live locations, a direction in which the user is moving, in degrees. Must be between 1 and 360 if specified.

§proximity_alert_radius: Option<i64>

For live locations, a maximum distance for proximity alerts about approaching another chat member, in meters. Must be between 1 and 100000 if specified.

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the location

§thumb_url: Option<String>

Url of the thumbnail for the result

§thumb_width: Option<i64>

Thumbnail width

§thumb_height: Option<i64>

Thumbnail height

§

Venue

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 Bytes

§latitude: f32

Latitude of the venue location in degrees

§longitude: f32

Longitude of the venue location in degrees

§title: String

Title of the venue

§address: String

Address of the venue

§foursquare_id: Option<String>

Foursquare identifier of the venue if known

§foursquare_type: Option<String>

Foursquare type of the venue, if known. (For example, “arts_entertainment/default”, “arts_entertainment/aquarium” or “food/icecream”.)

§google_place_id: Option<String>

Google Places identifier of the venue

§google_place_type: Option<String>

Google Places type of the venue. (See supported types.)

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the venue

§thumb_url: Option<String>

Url of the thumbnail for the result

§thumb_width: Option<i64>

Thumbnail width

§thumb_height: Option<i64>

Thumbnail height

§

Contact

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 Bytes

§phone_number: String

Contact’s phone number

§first_name: String

Contact’s first name

§last_name: Option<String>

Contact’s last name

§vcard: Option<String>

Additional data about the contact in the form of a vCard, 0-2048 bytes

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the contact

§thumb_url: Option<String>

Url of the thumbnail for the result

§thumb_width: Option<i64>

Thumbnail width

§thumb_height: Option<i64>

Thumbnail height

§

Game

Represents a Game. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§game_short_name: String

Short name of the game

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§

Photo

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§photo_file_id: String

A valid file identifier of the photo

§title: Option<String>

Title for the result

§description: Option<String>

Short description of the result

§caption: Option<String>

Caption of the photo to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the photo caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the photo

§

Gif

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§gif_file_id: String

A valid file identifier for the GIF file

§title: Option<String>

Title for the result

§caption: Option<String>

Caption of the GIF file to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the GIF animation

§

Mpeg4Gif

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§mpeg4_file_id: String

A valid file identifier for the MPEG4 file

§title: Option<String>

Title for the result

§caption: Option<String>

Caption of the MPEG-4 file to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the video animation

§

Sticker

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§sticker_file_id: String

A valid file identifier of the sticker

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the sticker

§

Document

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§title: String

Title for the result

§document_file_id: String

A valid file identifier for the file

§description: Option<String>

Short description of the result

§caption: Option<String>

Caption of the document to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the document caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the file

§

Video

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§video_file_id: String

A valid file identifier for the video file

§title: String

Title for the result

§description: Option<String>

Short description of the result

§caption: Option<String>

Caption of the video to be sent, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the video caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the video

§

Voice

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. Note: This will only work in Telegram versions released after 9 April, 2016. Older clients will ignore them.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§voice_file_id: String

A valid file identifier for the voice message

§title: String

Voice message title

§caption: Option<String>

Caption, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the voice message caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the voice message

§

Audio

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.

Fields

§id: String

Unique identifier for this result, 1-64 bytes

§audio_file_id: String

A valid file identifier for the audio file

§caption: Option<String>

Caption, 0-1024 characters after entities parsing

§parse_mode: Option<String>

Mode for parsing entities in the audio caption. See formatting options for more details.

§caption_entities: Vec<MessageEntity>

List of special entities that appear in the caption, which can be specified instead of parse_mode

§reply_markup: Option<InlineKeyboardMarkup>

Inline keyboard attached to the message

§input_message_content: Option<InputMessageContent>

Content of the message to be sent instead of the audio

Trait Implementations§

Source§

impl Clone for InlineQueryResult

Source§

fn clone(&self) -> InlineQueryResult

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for InlineQueryResult

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for InlineQueryResult

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for InlineQueryResult

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,