pw_telegram_bot_raw_fork/types/callback_query.rs
1use serde::{Deserialize, Serialize};
2
3use crate::types::*;
4
5/// This object represents an incoming callback query from a callback button in an inline keyboard.
6#[derive(Debug, Clone, PartialEq, PartialOrd, Serialize, Deserialize)]
7pub struct CallbackQuery {
8 /// Unique identifier for this query
9 pub id: CallbackQueryId,
10 /// Sender
11 pub from: User,
12 /// Message with the callback button that originated the query.
13 /// Note that message content and message date will not be available if the message is too old
14 pub message: Option<MessageOrChannelPost>,
15 /// Identifier of the message sent via the bot in inline mode, that originated the query.
16 pub inline_message_id: Option<String>,
17 /// Global identifier, uniquely corresponding to the chat to which the message
18 /// with the callback button was sent. Useful for high scores in games.
19 pub chat_instance: String,
20 /// Data associated with the callback button. Be aware that a bad client can
21 /// send arbitrary data in this field.
22 pub data: Option<String>,
23}