pub struct SendAudio<'a> { /* private fields */ }Expand description
Sends an audio.
Reflects the sendAudio method.
Implementations§
Source§impl<'a> SendAudio<'a>
impl<'a> SendAudio<'a>
Sourcepub fn is_notification_disabled(self, is_disabled: bool) -> Self
pub fn is_notification_disabled(self, is_disabled: bool) -> Self
Configures if the message will be sent silently.
Reflects the disable_notification parameter.
Sourcepub fn in_reply_to(self, id: Id) -> Self
pub fn in_reply_to(self, id: Id) -> Self
Configures which message this audio is sent in reply to.
Reflects the reply_to_message_id parameter.
Sourcepub fn reply_markup(self, markup: impl Into<Any<'a>>) -> Self
pub fn reply_markup(self, markup: impl Into<Any<'a>>) -> Self
Configures a keyboard for the message.
Reflects the reply_markup parameter.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for SendAudio<'a>
impl<'a> !RefUnwindSafe for SendAudio<'a>
impl<'a> Send for SendAudio<'a>
impl<'a> Sync for SendAudio<'a>
impl<'a> Unpin for SendAudio<'a>
impl<'a> !UnwindSafe for SendAudio<'a>
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