From 74d02db14982ee5439f9d4e1da819db33d712d3b Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 26 Nov 2023 18:24:15 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/bots/webapps.html | 8 ++++++-- data/web/corefork.telegram.org/api/layers.html | 2 +- .../web/corefork.telegram.org/api/sponsored-messages.html | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html index 1d9b2931d2..bee6a072d2 100644 --- a/data/web/corefork.telegram.org/api/bots/webapps.html +++ b/data/web/corefork.telegram.org/api/bots/webapps.html @@ -109,8 +109,12 @@ Note that eventual errors will not be sent as a failed event if the messages.sendWebViewData#dc0242c8 bot:InputUser random_id:long button_text:string data:string = Updates;

Simple Mini Apps can only send data back to the bot through the MTProto API via a web_app_data_send JS event ».

-

Simple Mini Apps can be opened from a keyboardButtonSimpleWebView button contained in a reply keyboard identified by a replyKeyboardMarkup constructor, or by clicking on the inlineBotWebView button on top of the inline result list, contained in messages.botResults.switch_webview, returned by messages.getInlineBotResults.

-

To open them, users should call messages.requestSimpleWebView passing the original url, and then open a webview using the url contained in the returned simpleWebViewResultUrl.

+

Simple Mini Apps can be opened:

+ +

To open them, users should call messages.requestSimpleWebView passing the original url contained in the keyboardButtonSimpleWebView/inlineBotWebView constructors, and then open a webview using the url contained in the returned simpleWebViewResultUrl.

If and only if the Mini App was opened from a keyboardButtonSimpleWebView reply keyboard button, upon receiving a web_app_data_send JS event » from the Mini App, clients should invoke messages.sendWebViewData, passing the following arguments: