Struct awesome_bot::SendText [−][src]
pub struct SendText { /* fields omitted */ }
Transparent struct built by SendBuilder
to send
Text
messages.
Methods
impl SendText
[src]
impl SendText
pub fn parse_mode(&mut self, v: ParseMode) -> &mut SendText
[src]
pub fn parse_mode(&mut self, v: ParseMode) -> &mut SendText
Set ParseMode
for the message
pub fn disable_preview(&mut self, v: bool) -> &mut SendText
[src]
pub fn disable_preview(&mut self, v: bool) -> &mut SendText
Set true
to disable the link preview in the message.
pub fn reply_id(&mut self, v: Integer) -> &mut SendText
[src]
pub fn reply_id(&mut self, v: Integer) -> &mut SendText
Set a message ID to reply to with this message.
pub fn markup(&mut self, v: ReplyMarkup) -> &mut SendText
[src]
pub fn markup(&mut self, v: ReplyMarkup) -> &mut SendText
Set a ReplyMarkup
to send, but instead of directly using this, use the keyboard
, hide
or force
methods
impl SendText
[src]
impl SendText
Add keyboard methods to the struct, only one of these will be sent, and it will be the last one used.
pub fn keyboard(&mut self, r: ReplyKeyboardMarkup) -> &mut SendText
[src]
pub fn keyboard(&mut self, r: ReplyKeyboardMarkup) -> &mut SendText
Add a keyboard to the reply
pub fn hide(&mut self, h: bool) -> &mut SendText
[src]
pub fn hide(&mut self, h: bool) -> &mut SendText
Hide the keyboard
pub fn force(&mut self, f: bool) -> &mut SendText
[src]
pub fn force(&mut self, f: bool) -> &mut SendText
Force the reply to this message