Struct tbot::contexts::InlineGameCallback
source · #[non_exhaustive]pub struct InlineGameCallback {
pub bot: Bot,
pub id: Id,
pub from: User,
pub inline_message_id: String,
pub chat_instance: String,
pub game: String,
}Expand description
Context for the inline_game_callback handler.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bot: BotA bot for calling API without information inference.
id: IdThe ID of the callback.
from: UserThe user who initiated the callback.
inline_message_id: StringThe origin of the query.
chat_instance: StringThe identifier of the chat.
game: StringThe requested game.
Trait Implementations§
source§impl Callback for InlineGameCallback
impl Callback for InlineGameCallback
source§impl Clone for InlineGameCallback
impl Clone for InlineGameCallback
source§fn clone(&self) -> InlineGameCallback
fn clone(&self) -> InlineGameCallback
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 more