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

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

Provides methods appliable to callback queries.

Provided methods

fn answer(&self, action: Option<CallbackAction>) -> AnswerCallbackQuery<'_>[src]

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<'_>[src]

Answers the query without any action.

fn open_url(&self, url: impl Into<String>) -> AnswerCallbackQuery<'_>[src]

Opens a URL.

fn notify(&self, text: impl Into<String>) -> AnswerCallbackQuery<'_>[src]

Shows a notification to the user.

fn alert(&self, text: impl Into<String>) -> AnswerCallbackQuery<'_>[src]

Shows an alert to the user.

Loading content...

Implementors

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

Loading content...