[−][src]Trait tbot::prelude::_
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.