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: 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.
data: StringData 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