Function get_web_app_link_url

Source
pub async fn get_web_app_link_url(
    chat_id: i64,
    bot_user_id: i64,
    web_app_short_name: String,
    start_parameter: String,
    theme: Option<ThemeParameters>,
    application_name: String,
    allow_write_access: bool,
    client_id: i32,
) -> Result<HttpUrl, Error>
Expand description

Returns an HTTPS URL of a Web App to open after a link of the type internalLinkTypeWebApp is clicked

ยงArguments

  • chat_id - Identifier of the chat in which the link was clicked; pass 0 if none
  • bot_user_id - Identifier of the target bot
  • web_app_short_name - Short name of the Web App
  • start_parameter - Start parameter from internalLinkTypeWebApp
  • 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
  • allow_write_access - Pass true if the current user allowed the bot to send them messages
  • client_id - The client id to send the request to