Struct botapi::gen_types::InlineQueryResultAudio
source · pub struct InlineQueryResultAudio { /* private fields */ }Expand description
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.
Implementations§
source§impl InlineQueryResultAudio
impl InlineQueryResultAudio
pub fn noskip(self) -> NoSkipInlineQueryResultAudio
source§impl InlineQueryResultAudio
impl InlineQueryResultAudio
pub fn new(id: String, audio_url: String, title: String) -> Self
sourcepub fn get_tg_type<'a>(&'a self) -> Cow<'a, str>
pub fn get_tg_type<'a>(&'a self) -> Cow<'a, str>
Type of the result, must be audio
sourcepub fn get_tg_type_ref<'a>(&'a self) -> &'a str
pub fn get_tg_type_ref<'a>(&'a self) -> &'a str
Type of the result, must be audio
sourcepub fn get_id_ref<'a>(&'a self) -> &'a str
pub fn get_id_ref<'a>(&'a self) -> &'a str
Unique identifier for this result, 1-64 bytes
sourcepub fn get_audio_url<'a>(&'a self) -> Cow<'a, str>
pub fn get_audio_url<'a>(&'a self) -> Cow<'a, str>
A valid URL for the audio file
sourcepub fn get_audio_url_ref<'a>(&'a self) -> &'a str
pub fn get_audio_url_ref<'a>(&'a self) -> &'a str
A valid URL for the audio file
sourcepub fn get_title_ref<'a>(&'a self) -> &'a str
pub fn get_title_ref<'a>(&'a self) -> &'a str
Title
sourcepub fn get_caption<'a>(&'a self) -> Option<Cow<'a, str>>
pub fn get_caption<'a>(&'a self) -> Option<Cow<'a, str>>
Optional. Caption, 0-1024 characters after entities parsing
sourcepub fn get_caption_ref<'a>(&'a self) -> Option<&'a str>
pub fn get_caption_ref<'a>(&'a self) -> Option<&'a str>
Optional. Caption, 0-1024 characters after entities parsing
sourcepub fn get_parse_mode<'a>(&'a self) -> Option<Cow<'a, str>>
pub fn get_parse_mode<'a>(&'a self) -> Option<Cow<'a, str>>
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
sourcepub fn get_parse_mode_ref<'a>(&'a self) -> Option<&'a str>
pub fn get_parse_mode_ref<'a>(&'a self) -> Option<&'a str>
Optional. Mode for parsing entities in the audio caption. See formatting options for more details.
sourcepub fn get_caption_entities<'a>(&'a self) -> Option<Cow<'a, Vec<MessageEntity>>>
pub fn get_caption_entities<'a>(&'a self) -> Option<Cow<'a, Vec<MessageEntity>>>
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
sourcepub fn get_caption_entities_ref<'a>(&'a self) -> Option<&'a Vec<MessageEntity>>
pub fn get_caption_entities_ref<'a>(&'a self) -> Option<&'a Vec<MessageEntity>>
Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode
sourcepub fn get_performer<'a>(&'a self) -> Option<Cow<'a, str>>
pub fn get_performer<'a>(&'a self) -> Option<Cow<'a, str>>
Optional. Performer
sourcepub fn get_performer_ref<'a>(&'a self) -> Option<&'a str>
pub fn get_performer_ref<'a>(&'a self) -> Option<&'a str>
Optional. Performer
sourcepub fn get_audio_duration<'a>(&'a self) -> Option<i64>
pub fn get_audio_duration<'a>(&'a self) -> Option<i64>
Optional. Audio duration in seconds
sourcepub fn get_audio_duration_ref<'a>(&'a self) -> Option<i64>
pub fn get_audio_duration_ref<'a>(&'a self) -> Option<i64>
Optional. Audio duration in seconds
sourcepub fn get_reply_markup<'a>(&'a self) -> Option<Cow<'a, InlineKeyboardMarkup>>
pub fn get_reply_markup<'a>(&'a self) -> Option<Cow<'a, InlineKeyboardMarkup>>
Optional. Inline keyboard attached to the message
sourcepub fn get_reply_markup_ref<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
pub fn get_reply_markup_ref<'a>(&'a self) -> Option<&'a InlineKeyboardMarkup>
Optional. Inline keyboard attached to the message
sourcepub fn get_input_message_content<'a>(
&'a self
) -> Option<Cow<'a, InputMessageContent>>
pub fn get_input_message_content<'a>( &'a self ) -> Option<Cow<'a, InputMessageContent>>
Optional. Content of the message to be sent instead of the audio
sourcepub fn get_input_message_content_ref<'a>(
&'a self
) -> Option<&'a InputMessageContent>
pub fn get_input_message_content_ref<'a>( &'a self ) -> Option<&'a InputMessageContent>
Optional. Content of the message to be sent instead of the audio
Trait Implementations§
source§impl Clone for InlineQueryResultAudio
impl Clone for InlineQueryResultAudio
source§fn clone(&self) -> InlineQueryResultAudio
fn clone(&self) -> InlineQueryResultAudio
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more