Struct tbot::contexts::MessageDataCallback
source · #[non_exhaustive]pub struct MessageDataCallback {
pub bot: Bot,
pub id: Id,
pub from: User,
pub message: Message,
pub chat_instance: String,
pub data: String,
}
Expand description
Context for the message_data_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.
data: String
Data from the callback.
Trait Implementations§
source§impl Callback for MessageDataCallback
impl Callback for MessageDataCallback
source§impl Clone for MessageDataCallback
impl Clone for MessageDataCallback
source§fn clone(&self) -> MessageDataCallback
fn clone(&self) -> MessageDataCallback
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 MessageDataCallback
impl Context for MessageDataCallback
source§impl Copyable for MessageDataCallback
impl Copyable for MessageDataCallback
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 MessageDataCallback
impl Debug for MessageDataCallback
source§impl Forwardable for MessageDataCallback
impl Forwardable for MessageDataCallback
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 MessageDataCallback
impl Message for MessageDataCallback
source§impl Pinnable for MessageDataCallback
impl Pinnable for MessageDataCallback
source§fn pin_this_message(&self) -> PinChatMessage<'_>
fn pin_this_message(&self) -> PinChatMessage<'_>
Pins this message.