Trait tbot::contexts::fields::Callback[][src]

pub trait Callback: Context {
    fn id(&self) -> &Id;
fn from(&self) -> &User;
fn chat_instance(&self) -> &str; }

A general trait for callback updates.

Required methods

fn id(&self) -> &Id[src]

The ID of the callback.

fn from(&self) -> &User[src]

The user who initiated the callback.

fn chat_instance(&self) -> &str[src]

The identifier of the chat.

Loading content...


impl Callback for InlineDataCallback[src]

impl Callback for InlineGameCallback[src]

impl Callback for MessageDataCallback[src]

impl Callback for MessageGameCallback[src]

Loading content...