From 95e108ebf7055c65ccece01328d61764dbf17a30 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 7 Feb 2024 21:34:27 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/bots/webapps.html | 2 +- data/web/corefork.telegram.org/api/web-events.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html index 8f7959da9b..3e2088ded7 100644 --- a/data/web/corefork.telegram.org/api/bots/webapps.html +++ b/data/web/corefork.telegram.org/api/bots/webapps.html @@ -165,7 +165,7 @@ Note that eventual errors will not be sent as a failed event if the

Keyboard Button Mini Apps should be opened when the user clicks a keyboardButtonSimpleWebView contained in a reply keyboard identified by a replyKeyboardMarkup constructor, by invoking messages.requestSimpleWebView passing the button's url to the url parameter.

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

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

-

Upon receiving a web_app_data_send JS event » from the Mini App, clients should invoke messages.sendWebViewData, passing the following arguments:

+

Upon receiving a web_app_data_send JS event » only from Keyboard Button Mini Apps, clients should invoke messages.sendWebViewData, passing the following arguments: