pub struct CallbackQuery {
pub platform: String,
pub chat_id: String,
pub user_id: String,
pub callback_query_id: String,
pub data: String,
pub reply_ctx: ReplyCtx,
}Expand description
An inline-button press received from a platform (capability-gated on
Capabilities::buttons) — the counterpart to a text InboundMessage.
Fields§
§platform: StringPlatform name (matches Platform::name), e.g. "telegram".
chat_id: StringPlatform-scoped chat identifier.
user_id: StringPlatform-scoped sender identifier (checked against allow_from,
exactly like InboundMessage::user_id).
callback_query_id: StringPlatform-scoped callback-query identifier. Every callback query MUST
be acknowledged via Platform::answer_callback exactly once — success
or not (stale/forged data still gets acked, just silently dropped).
data: StringThe pressed button’s callback_data, verbatim.
reply_ctx: ReplyCtxOpaque context to hand back to Platform::reply/edit.
Trait Implementations§
Source§impl Clone for CallbackQuery
impl Clone for CallbackQuery
Source§fn clone(&self) -> CallbackQuery
fn clone(&self) -> CallbackQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CallbackQuery
impl RefUnwindSafe for CallbackQuery
impl Send for CallbackQuery
impl Sync for CallbackQuery
impl Unpin for CallbackQuery
impl UnsafeUnpin for CallbackQuery
impl UnwindSafe for CallbackQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more