[][src]Trait tbot::prelude::_

pub trait _: Callback {
    fn answer<'a>(
        &'a self,
        action: CallbackAction<'a>
    ) -> AnswerCallbackQuery<'a> { ... }
fn ignore(&self) -> AnswerCallbackQuery { ... }
fn open_url<'a>(&'a self, url: &'a str) -> AnswerCallbackQuery<'a> { ... }
fn notify<'a>(&'a self, text: &'a str) -> AnswerCallbackQuery<'a> { ... }
fn alert<'a>(&'a self, text: &'a str) -> AnswerCallbackQuery<'a> { ... } }

Provides methods appliable to callback queries.

Provided methods

fn answer<'a>(&'a self, action: CallbackAction<'a>) -> AnswerCallbackQuery<'a>

Answers the callback query.

If you don't need to choose the action dynamically, using dedicated methods will be more convenient: ignore, open_url, notify and alert.

fn ignore(&self) -> AnswerCallbackQuery

Answers the query without any action.

fn open_url<'a>(&'a self, url: &'a str) -> AnswerCallbackQuery<'a>

Opens a URL.

fn notify<'a>(&'a self, text: &'a str) -> AnswerCallbackQuery<'a>

Shows a notification to the user.

fn alert<'a>(&'a self, text: &'a str) -> AnswerCallbackQuery<'a>

Shows an alert to the user.

Loading content...

Implementors

impl<T: Callback> Callback for T[src]

Loading content...