diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html index 3e2088ded7..4c9e057694 100644 --- a/data/web/corefork.telegram.org/api/bots/webapps.html +++ b/data/web/corefork.telegram.org/api/bots/webapps.html @@ -244,18 +244,9 @@ If empty, the current chat is used. messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;

Side menu Mini Apps can be opened by clicking on the installed side menu entry ».

This action must trigger a messages.requestSimpleWebView query with the from_side_menu flag set: clients should open a webview using the url contained in the returned simpleWebViewResultUrl.

-

Direct link Mini Apps

-

Schema:

-
simpleWebViewResultUrl#882f76bb url:string = SimpleWebViewResult;
-
----functions---
-
-messages.requestSimpleWebView#1a46500a flags:# from_switch_webview:flags.1?true from_side_menu:flags.2?true bot:InputUser url:flags.3?string start_param:flags.4?string theme_params:flags.0?DataJSON platform:string = SimpleWebViewResult;
-

Direct Link Mini Apps can be opened by clicking on a Mini App link ».

-

This action must trigger a messages.requestSimpleWebView query with the from_side_menu flag set (like for side menu Mini Apps), and any eventual start_parameter from the link should also be passed to the start_param flag.

-

Note that the app should be opened (with an installation prompt before, if needed) even if the client is minimized.

+

Side menu Mini Apps can also be opened by clicking on a Mini App link »: in which case the start_parameter should be provided to messages.requestSimpleWebView.start_param, if present; note that in this case, the app should be opened (with an installation prompt » before, if not already installed) even if the client is minimized.

After invoking messages.requestSimpleWebView and obtaining a simpleWebViewResultUrl result, clients should open a webview using the url contained in the returned simpleWebViewResultUrl.

-

Named Mini Apps

+

Direct Link Mini Apps

Schema:

inputBotAppID#a920bd7a id:long access_hash:long = InputBotApp;
 inputBotAppShortName#908c0407 bot_id:InputUser short_name:string = InputBotApp;
@@ -272,7 +263,7 @@ If empty, the current chat is used.  
 messages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp;
 
 messages.requestAppWebView#8c5a3b3c flags:# write_allowed:flags.0?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = AppWebViewResult;
-

Another way to open Mini Apps is by using named Mini App links ».

+

Another way to open Mini Apps is by using Direct Mini App links ».

These links are different from all other Mini App links, because they don't require the user to install an attachment menu, and a single bot can offer multiple Mini Apps, distinguished by their short_name.

These links should be handled as follows:

New Constructors