pub struct SendMessage<'a> { /* private fields */ }Expand description
Sends a text message.
Reflects the sendMessage method.
Implementations§
Source§impl<'a> SendMessage<'a>
impl<'a> SendMessage<'a>
Sourcepub fn is_web_page_preview_disabled(self, is_disabled: bool) -> Self
pub fn is_web_page_preview_disabled(self, is_disabled: bool) -> Self
Configures if a preview for the first link in the message should be
shown. Reflects the disable_web_page_preview parameter.
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 text message 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.
Source§impl SendMessage<'_>
impl SendMessage<'_>
Sourcepub async fn call(self) -> Result<Message, MethodCall>
pub async fn call(self) -> Result<Message, MethodCall>
Calls the method.
Trait Implementations§
Source§impl<'a> Clone for SendMessage<'a>
impl<'a> Clone for SendMessage<'a>
Source§fn clone(&self) -> SendMessage<'a>
fn clone(&self) -> SendMessage<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SendMessage<'a>
impl<'a> Debug for SendMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for SendMessage<'a>
impl<'a> !RefUnwindSafe for SendMessage<'a>
impl<'a> Send for SendMessage<'a>
impl<'a> Sync for SendMessage<'a>
impl<'a> Unpin for SendMessage<'a>
impl<'a> !UnwindSafe for SendMessage<'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