Struct tbot::contexts::MessageGameCallback
source · #[non_exhaustive]pub struct MessageGameCallback {
pub bot: Bot,
pub id: Id,
pub from: User,
pub message: Message,
pub chat_instance: String,
pub game: String,
}
Expand description
Context for the message_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: Bot
A bot for calling API without information inference.
id: Id
The ID of the callback.
from: User
The user who initiated the callback.
message: Message
The origin of the query.
chat_instance: String
The identifier of the chat.
game: String
The requested game.
Trait Implementations§
source§impl Callback for MessageGameCallback
impl Callback for MessageGameCallback
source§impl Clone for MessageGameCallback
impl Clone for MessageGameCallback
source§fn clone(&self) -> MessageGameCallback
fn clone(&self) -> MessageGameCallback
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 Context for MessageGameCallback
impl Context for MessageGameCallback
source§impl Copyable for MessageGameCallback
impl Copyable for MessageGameCallback
source§fn copy_to(&self, chat_id: impl ImplicitChatId) -> CopyMessage<'_>
fn copy_to(&self, chat_id: impl ImplicitChatId) -> CopyMessage<'_>
Copies this message to another chat.
source§impl Debug for MessageGameCallback
impl Debug for MessageGameCallback
source§impl Forwardable for MessageGameCallback
impl Forwardable for MessageGameCallback
source§fn forward_to(&self, chat_id: impl ImplicitChatId) -> ForwardMessage<'_>
fn forward_to(&self, chat_id: impl ImplicitChatId) -> ForwardMessage<'_>
Forwards this message to another chat.
source§impl Message for MessageGameCallback
impl Message for MessageGameCallback
source§impl Pinnable for MessageGameCallback
impl Pinnable for MessageGameCallback
source§fn pin_this_message(&self) -> PinChatMessage<'_>
fn pin_this_message(&self) -> PinChatMessage<'_>
Pins this message.