[][src]Struct carapax::prelude::InlineQueryResultAudio

pub struct InlineQueryResultAudio { /* fields omitted */ }

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

Methods

impl InlineQueryResultAudio[src]

pub fn new<S>(id: S, audio_url: S, title: S) -> InlineQueryResultAudio where
    S: Into<String>, 
[src]

Creates a new InlineQueryResultAudio with empty optional parameters

Arguments

  • id - Unique identifier for this result, 1-64 bytes
  • audio_url - A valid URL for the audio file
  • title - Title

pub fn caption<S>(self, caption: S) -> InlineQueryResultAudio where
    S: Into<String>, 
[src]

Caption, 0-1024 characters

pub fn parse_mode(self, parse_mode: ParseMode) -> InlineQueryResultAudio[src]

Parse mode

pub fn performer<S>(self, performer: S) -> InlineQueryResultAudio where
    S: Into<String>, 
[src]

Performer

pub fn audio_duration(self, audio_duration: i64) -> InlineQueryResultAudio[src]

Audio duration in seconds

pub fn reply_markup<I>(self, reply_markup: I) -> InlineQueryResultAudio where
    I: Into<InlineKeyboardMarkup>, 
[src]

Inline keyboard attached to the message

pub fn input_message_content(
    self,
    input_message_content: InputMessageContent
) -> InlineQueryResultAudio
[src]

Content of the message to be sent instead of the audio

Trait Implementations

impl From<InlineQueryResultAudio> for InlineQueryResult[src]

impl Serialize for InlineQueryResultAudio[src]

impl Debug for InlineQueryResultAudio[src]

impl Clone for InlineQueryResultAudio[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T