Function answer_callback_query

Source
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 query
  • text - Text of the answer
  • show_alert - Pass true to show an alert to the user instead of a toast notification
  • url - URL to be opened
  • cache_time - Time during which the result of the query can be cached, in seconds
  • client_id - The client id to send the request to