get_web_app_link_url()¶
- Client.get_web_app_link_url()¶
Returns an HTTPS URL of a Web App to open.
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target chat.bot_user_id (
int|str) – Unique identifier (int) or username (str) of the target bot.web_app_short_name (
str) – Short name of the Web App.start_parameter (
str, optional) – Start parameter.allow_write_access (
bool, optional) – Pass True if the current user allowed the bot to send them messages.platform (
ClientPlatform, optional) – The platform on which the link will be opened.
- Returns:
str– On success, returns the url of a Web App.
Example
link = await app.get_web_app_link_url(chat_id, bot_user_id, web_app_short_name)