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§
Source§impl Clone for AnswerCallbackQuery
impl Clone for AnswerCallbackQuery
Source§fn clone(&self) -> AnswerCallbackQuery
fn clone(&self) -> AnswerCallbackQuery
Returns a duplicate 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
Source§impl Methods for AnswerCallbackQuery
impl Methods for AnswerCallbackQuery
Auto Trait Implementations§
impl Freeze for AnswerCallbackQuery
impl RefUnwindSafe for AnswerCallbackQuery
impl Send for AnswerCallbackQuery
impl Sync for AnswerCallbackQuery
impl Unpin for AnswerCallbackQuery
impl UnwindSafe for AnswerCallbackQuery
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more