diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html
index 1ccdf132d9..16c51d7c8e 100644
--- a/data/web/corefork.telegram.org/api/bots/webapps.html
+++ b/data/web/corefork.telegram.org/api/bots/webapps.html
@@ -109,8 +109,8 @@ 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 webapps can only send back data to the bot through the MTProto API via a web_app_data_send
JS event ».
Simple webapps can only be opened from a keyboardButtonSimpleWebView button contained in a reply keyboard identified by a replyKeyboardMarkup constructor.
-To open them, users should call messages.requestSimpleWebView, and then open a webview using the url
contained in the returned simpleWebViewResultUrl.
Simple webapps 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.
Upon receiving a web_app_data_send
JS event » from the web app, clients should invoke messages.sendWebViewData, passing the following arguments:
bot
- Bot IDSpecifies a bot web app button, shown on top of the inline query results list.
+Bots can offer users interactive HTML5 web apps to completely replace any website.
Bots can offer users interactive HTML5 web apps to completely replace any website.
diff --git a/data/web/corefork.telegram.org/method/messages.requestSimpleWebView b/data/web/corefork.telegram.org/method/messages.requestSimpleWebView index 8aed3a3b71..de3d8305d2 100644 --- a/data/web/corefork.telegram.org/method/messages.requestSimpleWebView +++ b/data/web/corefork.telegram.org/method/messages.requestSimpleWebView @@ -76,7 +76,7 @@switch_webview
button shown on top of the inline results list returned by messages.getInlineBotResults.Query an inline bot
Bots can offer users interactive HTML5 web apps to completely replace any website.
diff --git a/data/web/corefork.telegram.org/method/messages.setInlineBotResults b/data/web/corefork.telegram.org/method/messages.setInlineBotResults index c8c04eb476..e98eece38d 100644 --- a/data/web/corefork.telegram.org/method/messages.setInlineBotResults +++ b/data/web/corefork.telegram.org/method/messages.setInlineBotResults @@ -107,12 +107,12 @@Bots can offer users interactive HTML5 web apps to completely replace any website.
diff --git a/data/web/corefork.telegram.org/type/InlineBotWebView.html b/data/web/corefork.telegram.org/type/InlineBotWebView.html index 634c271df6..0b50cad10a 100644 --- a/data/web/corefork.telegram.org/type/InlineBotWebView.html +++ b/data/web/corefork.telegram.org/type/InlineBotWebView.html @@ -4,18 +4,10 @@Specifies a bot web app button, shown on top of the inline query results list.
+Bots can offer users interactive HTML5 web apps to completely replace any website.