Function get_web_app_url

Source
pub async fn get_web_app_url(
    bot_user_id: i64,
    url: String,
    theme: Option<ThemeParameters>,
    application_name: String,
    client_id: i32,
) -> Result<HttpUrl, Error>
Expand description

Returns an HTTPS URL of a Web App to open from the side menu, a keyboardButtonTypeWebApp button, an inlineQueryResultsButtonTypeWebApp button, or an internalLinkTypeSideMenuBot link

ยงArguments

  • bot_user_id - Identifier of the target bot
  • url - The URL from a keyboardButtonTypeWebApp button, inlineQueryResultsButtonTypeWebApp button, an internalLinkTypeSideMenuBot link, or an empty when the bot is opened from the side menu
  • theme - Preferred Web App theme; pass null to use the default theme
  • application_name - Short name of the application; 0-64 English letters, digits, and underscores
  • client_id - The client id to send the request to