Open a Main Mini App.
Method schema is available as of layer 193. Switch »
Name | Type | Description |
---|---|---|
flags | # | Flags, see TL conditional fields |
compact | flags.7?true | If set, requests to open the mini app in compact mode (as opposed to fullview mode). Must be set if the mode parameter of the Main Mini App link is equal to compact . |
peer | InputPeer | Currently open chat, may be inputPeerEmpty if no chat is currently open. |
bot | InputUser | Bot that owns the main mini app. |
start_param | flags.1?string | Start parameter, if opening from a Main Mini App link ». |
theme_params | flags.0?DataJSON | Theme parameters » |
platform | string | Short name of the application; 0-64 English letters, digits, and underscores |
Code | Type | Description |
---|---|---|
400 | BOT_INVALID | This is not a valid bot. |
Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.
An empty constructor, no user or chat is defined.
Bots can offer users interactive HTML5 web apps to completely replace any website.