Struct telegram_bot2::models::AnswerCallbackQuery
source · pub struct AnswerCallbackQuery { /* private fields */ }Expand description
Use this method to send answers to callback queries sent from inline keyboards. The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, true is returned.
Alternatively, the user can be redirected to the specified Game URL. For this option to work, you must first create a game for your bot via @BotFather and accept the terms. Otherwise, you may use links like
t.me/your_bot?start=XXXXthat open your bot with a parameter
Trait Implementations§
source§impl Clone for AnswerCallbackQuery
impl Clone for AnswerCallbackQuery
source§fn clone(&self) -> AnswerCallbackQuery
fn clone(&self) -> AnswerCallbackQuery
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for AnswerCallbackQuery
impl Debug for AnswerCallbackQuery
source§impl<'de> Deserialize<'de> for AnswerCallbackQuery
impl<'de> Deserialize<'de> for AnswerCallbackQuery
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more