pub trait Callback: 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<'_> { ... }
}
Expand description

Provides methods appliable to callback queries.

Provided Methods§

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.

Answers the query without any action.

Opens a URL.

Shows a notification to the user.

Shows an alert to the user.

Implementors§