pub enum ReplyMarkup {
InlineKeyboard(InlineKeyboardMarkup),
ReplyKeyboard(ReplyKeyboardMarkup),
ReplyKeyboardRemove(ReplyKeyboardRemove),
ForceReply(ForceReply),
}Expand description
Specifies how the user may respond to a message
Variants§
InlineKeyboard(InlineKeyboardMarkup)
This object represents an inline keyboard that appears right next to the message it belongs to.
ReplyKeyboard(ReplyKeyboardMarkup)
This object represents a custom keyboard with reply options (see Introduction to bots for details and examples).
ReplyKeyboardRemove(ReplyKeyboardRemove)
Upon receiving a message with this object, Telegram clients will remove the current custom keyboard and display the default letter-keyboard. By default, custom keyboards are displayed until a new keyboard is sent by a bot. An exception is made for one-time keyboards that are hidden immediately after the user presses a button (see ReplyKeyboardMarkup)
ForceReply(ForceReply)
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 mode
Trait Implementations§
Source§impl Clone for ReplyMarkup
impl Clone for ReplyMarkup
Source§fn clone(&self) -> ReplyMarkup
fn clone(&self) -> ReplyMarkup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more