pub async fn answer_callback_query(
callback_query_id: i64,
text: String,
show_alert: bool,
url: String,
cache_time: i32,
client_id: i32,
) -> Result<(), Error>
Expand description
Sets the result of a callback query; for bots only
ยงArguments
callback_query_id
- Identifier of the callback querytext
- Text of the answershow_alert
- Pass true to show an alert to the user instead of a toast notificationurl
- URL to be openedcache_time
- Time during which the result of the query can be cached, in secondsclient_id
- The client id to send the request to