Struct telegram_bot_ars::types::ForceReply
source · pub struct ForceReply { /* private fields */ }Expand description
Upon receiving a message with this object, Telegram clients will display a reply interface to the user (act as if the user has selected the bot‘s message and tapped ’Reply’). This can be extremely useful if you want to create user-friendly step-by-step interfaces without having to sacrifice privacy mod
Implementations§
source§impl ForceReply
impl ForceReply
pub fn new() -> ForceReply
sourcepub fn selective(&mut self) -> &mut ForceReply
pub fn selective(&mut self) -> &mut ForceReply
Use this method if you want to force reply from specific users only. Targets: 1) users that are @mentioned in the text of the Message object; 2) if the bot’s message is a reply (has reply_to_message_id), sender of the original message.
Trait Implementations§
source§impl Clone for ForceReply
impl Clone for ForceReply
source§fn clone(&self) -> ForceReply
fn clone(&self) -> ForceReply
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 Debug for ForceReply
impl Debug for ForceReply
source§impl From<ForceReply> for ReplyMarkup
impl From<ForceReply> for ReplyMarkup
source§fn from(value: ForceReply) -> ReplyMarkup
fn from(value: ForceReply) -> ReplyMarkup
Converts to this type from the input type.
source§impl PartialEq<ForceReply> for ForceReply
impl PartialEq<ForceReply> for ForceReply
source§fn eq(&self, other: &ForceReply) -> bool
fn eq(&self, other: &ForceReply) -> bool
source§impl PartialOrd<ForceReply> for ForceReply
impl PartialOrd<ForceReply> for ForceReply
source§fn partial_cmp(&self, other: &ForceReply) -> Option<Ordering>
fn partial_cmp(&self, other: &ForceReply) -> 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 moresource§impl Serialize for ForceReply
impl Serialize for ForceReply
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more