Struct tbot::contexts::InlineDataCallback
source · #[non_exhaustive]pub struct InlineDataCallback {
pub bot: Bot,
pub id: Id,
pub from: User,
pub inline_message_id: String,
pub chat_instance: String,
pub data: String,
}
Expand description
Context for the inline_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.
inline_message_id: String
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 InlineDataCallback
impl Callback for InlineDataCallback
source§impl Clone for InlineDataCallback
impl Clone for InlineDataCallback
source§fn clone(&self) -> InlineDataCallback
fn clone(&self) -> InlineDataCallback
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