Share a link without leaving the Mini App
Suppose a game should open Telegram’s chat list so the player can share it without leaving the game:

Two approaches are available:
- Open a URL such as
https://t.me/share/url?url=https://lengmo714.top. In Cocos Creator, callsys.openURL(url). On desktop, this can close the current Mini App. - Prefer Telegram’s Web App API:
1 | window.Telegram?.WebApp.openTelegramLink(url); |
This keeps the Mini App open on desktop.
Open a Mini App directly
A bot can launch the app, but requiring users to open the bot and press Start adds friction. A BotFather short link can launch the Mini App directly.
In @BotFather:
1 | 1. Select /newapp |
BotFather returns a Web App link. A recipient can use that shared link to enter the game directly.

