Struct telegram_bot_fork::types::requests::SendAudio
source · pub struct SendAudio<'s, 'c, 'p, 't> { /* private fields */ }
Expand description
Use this method to send an audio
Implementations§
source§impl<'s, 'c, 'p, 't> SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> SendAudio<'s, 'c, 'p, 't>
pub fn with_url<C, T>(chat: C, url: T) -> SendAudio<'s, 'c, 'p, 't>where
C: ToChatRef,
T: Into<Cow<'s, str>>,
pub fn parse_mode(
&mut self,
parse_mode: ParseMode
) -> &mut SendAudio<'s, 'c, 'p, 't>
pub fn duration(&mut self, duration: i64) -> &mut SendAudio<'s, 'c, 'p, 't>
pub fn performer<T>(&mut self, performer: T) -> &mut SendAudio<'s, 'c, 'p, 't>where
T: Into<Cow<'p, str>>,
pub fn title<T>(&mut self, title: T) -> &mut SendAudio<'s, 'c, 'p, 't>where
T: Into<Cow<'t, str>>,
pub fn reply_to<R>(&mut self, to: R) -> &mut SendAudio<'s, 'c, 'p, 't>where
R: ToMessageId,
pub fn reply_markup<R>(
&mut self,
reply_markup: R
) -> &mut SendAudio<'s, 'c, 'p, 't>where
R: Into<ReplyMarkup>,
Trait Implementations§
source§impl<'s, 'c, 'p, 't> PartialEq<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> PartialEq<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
source§impl<'s, 'c, 'p, 't> PartialOrd<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> PartialOrd<SendAudio<'s, 'c, 'p, 't>> for SendAudio<'s, 'c, 'p, 't>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'s, 'c, 'p, 't> Request for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> Request for SendAudio<'s, 'c, 'p, 't>
type Type = JsonRequestType<SendAudio<'s, 'c, 'p, 't>>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
source§impl<'s, 'c, 'p, 't> Serialize for SendAudio<'s, 'c, 'p, 't>
impl<'s, 'c, 'p, 't> Serialize for SendAudio<'s, 'c, 'p, 't>
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more