send_web_app_data

Function send_web_app_data 

Source
pub async fn send_web_app_data(
    bot_user_id: i64,
    button_text: String,
    data: String,
    client_id: i32,
) -> Result<(), Error>
Expand description

Sends data received from a keyboardButtonTypeWebApp Web App to a bot

ยงArguments

  • bot_user_id - Identifier of the target bot
  • button_text - Text of the keyboardButtonTypeWebApp button, which opened the Web App
  • data - The data
  • client_id - The client id to send the request to