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) -> SendAudio<'c, 'p, 't>
pub fn thumb<V>(&mut self, thumb: V) -> &mut SendAudio<'c, 'p, 't>where
V: Into<InputFileUpload>,
pub fn caption<T>(&mut self, caption: T) -> &mut SendAudio<'c, 'p, 't>
pub fn parse_mode( &mut self, parse_mode: ParseMode, ) -> &mut SendAudio<'c, 'p, 't>
pub fn duration(&mut self, duration: i64) -> &mut SendAudio<'c, 'p, 't>
pub fn performer<T>(&mut self, performer: T) -> &mut SendAudio<'c, 'p, 't>
pub fn title<T>(&mut self, title: T) -> &mut SendAudio<'c, 'p, 't>
pub fn reply_to<R>(&mut self, to: R) -> &mut SendAudio<'c, 'p, 't>where
R: ToMessageId,
pub fn reply_markup<R>(&mut self, reply_markup: R) -> &mut SendAudio<'c, 'p, 't>where
R: Into<ReplyMarkup>,
pub fn disable_notification(&mut self) -> &mut SendAudio<'c, 'p, 't>
Trait Implementations§
Source§impl<'c, 'p, 't> PartialOrd for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> PartialOrd for SendAudio<'c, 'p, 't>
Source§impl<'c, 'p, 't> ToMultipart for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> ToMultipart for SendAudio<'c, 'p, 't>
fn to_multipart(&self) -> Result<Vec<(&'static str, MultipartValue)>, Error>
impl<'c, 'p, 't> StructuralPartialEq for SendAudio<'c, 'p, 't>
Auto Trait Implementations§
impl<'c, 'p, 't> !Freeze for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> RefUnwindSafe for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> Send for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> Sync for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> Unpin for SendAudio<'c, 'p, 't>
impl<'c, 'p, 't> UnwindSafe for SendAudio<'c, 'p, 't>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more