Struct telegram_bot_api::methods::AnswerCallbackQuery
source · [−]pub struct AnswerCallbackQuery {
pub callback_query_id: String,
pub text: Option<String>,
pub show_alert: Option<bool>,
pub url: Option<String>,
}
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.
Fields
callback_query_id: String
Unique identifier for the query to be answered
text: Option<String>
Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters
show_alert: Option<bool>
If True, an alert will be shown by the client instead of a notification at the top of the chat screen. Defaults to false.
url: Option<String>
URL that will be opened by the user’s client. If you have created a Game and accepted the conditions via @BotFather, specify the URL that opens your game - note that this will only work if the query comes from a callback_game button.
Implementations
Trait Implementations
sourceimpl Clone for AnswerCallbackQuery
impl Clone for AnswerCallbackQuery
sourcefn clone(&self) -> AnswerCallbackQuery
fn clone(&self) -> AnswerCallbackQuery
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AnswerCallbackQuery
impl Debug for AnswerCallbackQuery
sourceimpl<'de> Deserialize<'de> for AnswerCallbackQuery
impl<'de> Deserialize<'de> for AnswerCallbackQuery
sourcefn 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
sourceimpl Methods for AnswerCallbackQuery
impl Methods for AnswerCallbackQuery
sourceimpl Serialize for AnswerCallbackQuery
impl Serialize for AnswerCallbackQuery
Auto Trait Implementations
impl RefUnwindSafe for AnswerCallbackQuery
impl Send for AnswerCallbackQuery
impl Sync for AnswerCallbackQuery
impl Unpin for AnswerCallbackQuery
impl UnwindSafe for AnswerCallbackQuery
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more