Struct tg_bot_models::EditMessageReplyMarkup [−][src]
pub struct EditMessageReplyMarkup { pub chat_id: Option<PolymorphChatId>, pub message_id: Option<i64>, pub inline_message_id: Option<String>, pub reply_markup: Option<InlineKeyboardMarkup>, }
Use this method to edit only the reply markup of messages sent by the bot or via the bot (for inline bots). On success, if edited message is sent by the bot, the edited Message is returned, otherwise True is returned.
Fields
chat_id: Option<PolymorphChatId>
Required if inline_message_id is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: Option<i64>
Required if inline_message_id is not specified. Identifier of the sent message
inline_message_id: Option<String>
Required if chat_id and message_id are not specified. Identifier of the inline message
reply_markup: Option<InlineKeyboardMarkup>
A JSON-serialized object for an inline keyboard.
Trait Implementations
impl Debug for EditMessageReplyMarkup
[src]
impl Debug for EditMessageReplyMarkup
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for EditMessageReplyMarkup
[src]
impl Clone for EditMessageReplyMarkup
fn clone(&self) -> EditMessageReplyMarkup
[src]
fn clone(&self) -> EditMessageReplyMarkup
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for EditMessageReplyMarkup
[src]
impl PartialEq for EditMessageReplyMarkup
fn eq(&self, other: &EditMessageReplyMarkup) -> bool
[src]
fn eq(&self, other: &EditMessageReplyMarkup) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &EditMessageReplyMarkup) -> bool
[src]
fn ne(&self, other: &EditMessageReplyMarkup) -> bool
This method tests for !=
.
impl PartialOrd for EditMessageReplyMarkup
[src]
impl PartialOrd for EditMessageReplyMarkup
fn partial_cmp(&self, other: &EditMessageReplyMarkup) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &EditMessageReplyMarkup) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &EditMessageReplyMarkup) -> bool
[src]
fn lt(&self, other: &EditMessageReplyMarkup) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &EditMessageReplyMarkup) -> bool
[src]
fn le(&self, other: &EditMessageReplyMarkup) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &EditMessageReplyMarkup) -> bool
[src]
fn gt(&self, other: &EditMessageReplyMarkup) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &EditMessageReplyMarkup) -> bool
[src]
fn ge(&self, other: &EditMessageReplyMarkup) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for EditMessageReplyMarkup
impl Send for EditMessageReplyMarkup
impl Sync for EditMessageReplyMarkup
impl Sync for EditMessageReplyMarkup