Struct telegram_bot_raw_ars::requests::send_audio::SendAudio
source · pub struct SendAudio<'c, 'p, 't> { /* private fields */ }
Expand description
Use this method to send an audio
Implementations§
source§impl<'c, 'p, 't> SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> SendAudio<'c, 'p, 't>
pub fn new<C, V>(chat: C, audio: V) -> Selfwhere
C: ToChatRef,
V: Into<InputFile>,
pub fn thumb<V>(&mut self, thumb: V) -> &mut Selfwhere
V: Into<InputFileUpload>,
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn duration(&mut self, duration: Integer) -> &mut Self
pub fn performer<T>(&mut self, performer: T) -> &mut Selfwhere
T: Into<Cow<'p, str>>,
pub fn title<T>(&mut self, title: T) -> &mut Selfwhere
T: Into<Cow<'t, str>>,
pub fn reply_to<R>(&mut self, to: R) -> &mut Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut Selfwhere
R: Into<ReplyMarkup>,
pub fn disable_notification(&mut self) -> &mut Self
Trait Implementations§
source§impl<'c, 'p, 't> PartialEq<SendAudio<'c, 'p, 't>> for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> PartialEq<SendAudio<'c, 'p, 't>> for SendAudio<'c, 'p, 't>
source§impl<'c, 'p, 't> PartialOrd<SendAudio<'c, 'p, 't>> for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> PartialOrd<SendAudio<'c, 'p, 't>> for SendAudio<'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 more