get_main_web_app()¶
- Client.get_main_web_app()¶
Returns information needed to open the main Web App of a bot.
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.start_parameter (
str, optional) – Start parameter.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_main_web_app(chat_id, bot_user_id)