Struct telegram_bot_raw_ars::requests::send_message::SendMessage
source · 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) -> Selfwhere
C: ToChatRef,
T: Into<Cow<'s, str>>,
pub fn parse_mode(&mut self, parse_mode: ParseMode) -> &mut Self
pub fn disable_preview(&mut self) -> &mut Self
pub fn disable_notification(&mut self) -> &mut Self
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>,
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 copy 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<SendMessage<'s>> for SendMessage<'s>
impl<'s> PartialEq<SendMessage<'s>> for SendMessage<'s>
source§fn eq(&self, other: &SendMessage<'s>) -> bool
fn eq(&self, other: &SendMessage<'s>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'s> PartialOrd<SendMessage<'s>> for SendMessage<'s>
impl<'s> PartialOrd<SendMessage<'s>> for SendMessage<'s>
source§fn partial_cmp(&self, other: &SendMessage<'s>) -> Option<Ordering>
fn partial_cmp(&self, other: &SendMessage<'s>) -> Option<Ordering>
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