pub struct SendMessage<'s> { /* private fields */ }
Expand description
Use this method to send text messages.
Implementations§
Source§impl<'s> SendMessage<'s>
impl<'s> SendMessage<'s>
pub fn new<C, T>(chat: C, text: T) -> Self
pub fn parse_mode(self, parse_mode: ParseMode) -> Self
pub fn disable_preview(self) -> Self
pub fn disable_notification(self) -> Self
pub fn reply_to<R>(self, to: R) -> Selfwhere
R: ToMessageId,
pub fn reply_markup<R>(self, reply_markup: R) -> Selfwhere
R: Into<ReplyMarkup>,
Trait Implementations§
Source§impl<'s> Clone for SendMessage<'s>
impl<'s> Clone for SendMessage<'s>
Source§fn clone(&self) -> SendMessage<'s>
fn clone(&self) -> SendMessage<'s>
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<'s> Debug for SendMessage<'s>
impl<'s> Debug for SendMessage<'s>
Source§impl<'s> PartialEq for SendMessage<'s>
impl<'s> PartialEq for SendMessage<'s>
Source§impl<'s> PartialOrd for SendMessage<'s>
impl<'s> PartialOrd for SendMessage<'s>
Source§impl<'c, 's> Request for SendMessage<'s>
impl<'c, 's> Request for SendMessage<'s>
type Type = JsonRequestType<SendMessage<'s>>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl<'s> Serialize for SendMessage<'s>
impl<'s> Serialize for SendMessage<'s>
impl<'s> StructuralPartialEq for SendMessage<'s>
Auto Trait Implementations§
impl<'s> Freeze for SendMessage<'s>
impl<'s> RefUnwindSafe for SendMessage<'s>
impl<'s> Send for SendMessage<'s>
impl<'s> Sync for SendMessage<'s>
impl<'s> Unpin for SendMessage<'s>
impl<'s> UnwindSafe for SendMessage<'s>
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