Struct telegram_bot_ars::types::CallbackQuery
source · pub struct CallbackQuery {
pub id: CallbackQueryId,
pub from: User,
pub message: Option<MessageOrChannelPost>,
pub inline_message_id: Option<String>,
pub chat_instance: String,
pub data: Option<String>,
}Expand description
This object represents an incoming callback query from a callback button in an inline keyboard.
Fields§
§id: CallbackQueryIdUnique identifier for this query
from: UserSender
message: Option<MessageOrChannelPost>Message with the callback button that originated the query. Note that message content and message date will not be available if the message is too old
inline_message_id: Option<String>Identifier of the message sent via the bot in inline mode, that originated the query.
chat_instance: StringGlobal identifier, uniquely corresponding to the chat to which the message with the callback button was sent. Useful for high scores in games.
data: Option<String>Data associated with the callback button. Be aware that a bad client can send arbitrary data in this field.
Trait Implementations§
source§impl Clone for CallbackQuery
impl Clone for CallbackQuery
source§fn clone(&self) -> CallbackQuery
fn clone(&self) -> CallbackQuery
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 CallbackQuery
impl Debug for CallbackQuery
source§impl<'de> Deserialize<'de> for CallbackQuery
impl<'de> Deserialize<'de> for CallbackQuery
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<CallbackQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<CallbackQuery, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<CallbackQuery> for CallbackQuery
impl PartialEq<CallbackQuery> for CallbackQuery
source§fn eq(&self, other: &CallbackQuery) -> bool
fn eq(&self, other: &CallbackQuery) -> bool
source§impl PartialOrd<CallbackQuery> for CallbackQuery
impl PartialOrd<CallbackQuery> for CallbackQuery
source§fn partial_cmp(&self, other: &CallbackQuery) -> Option<Ordering>
fn partial_cmp(&self, other: &CallbackQuery) -> 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