From 4e9f2b202ad625e4c8d99b91f63873f0200df785 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Tue, 11 Apr 2023 18:48:57 +0000 Subject: [PATCH] Update content of files --- .../api/bots/webapps.html | 4 +- .../web/corefork.telegram.org/api/layers.html | 2 +- .../constructor/inlineBotWebView.html | 38 +++++-------------- .../constructor/messages.botResults | 9 +++-- .../method/messages.requestSimpleWebView | 4 +- .../method/messages.setInlineBotResults | 9 +++-- .../type/InlineBotWebView.html | 22 +++++------ .../type/messages.TranslatedText | 2 +- 8 files changed, 38 insertions(+), 52 deletions(-) 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:

diff --git a/data/web/corefork.telegram.org/constructor/inlineBotWebView.html b/data/web/corefork.telegram.org/constructor/inlineBotWebView.html index 00afd9b3f0..006868897f 100644 --- a/data/web/corefork.telegram.org/constructor/inlineBotWebView.html +++ b/data/web/corefork.telegram.org/constructor/inlineBotWebView.html @@ -4,32 +4,10 @@ inlineBotWebView - + - + @@ -64,7 +42,8 @@ InlineBotWebView">

inlineBotWebView

-

+

Specifies a bot web app button, shown on top of the inline query results list.

+

+

InlineBotWebView

+

Related pages

+

Bot web apps

+

Bots can offer users interactive HTML5 web apps to completely replace any website.

diff --git a/data/web/corefork.telegram.org/constructor/messages.botResults b/data/web/corefork.telegram.org/constructor/messages.botResults index a3ff3f2602..96c0adfc36 100644 --- a/data/web/corefork.telegram.org/constructor/messages.botResults +++ b/data/web/corefork.telegram.org/constructor/messages.botResults @@ -89,12 +89,12 @@ switch_pm flags.2?InlineBotSwitchPM -Whether the bot requested the user to message them in private +Shown as a button on top of the remaining inline result list; if clicked, redirects the user to a private chat with the bot with the specified start parameter. switch_webview flags.3?InlineBotWebView -  +Shown as a button on top of the remaining inline result list; if clicked, opens the specified bot web app. results @@ -114,7 +114,10 @@

Type

-

messages.BotResults

+

messages.BotResults

+

Related pages

+

Bot web apps

+

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 @@ from_switch_webview flags.1?true -  +Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by messages.getInlineBotResults. bot @@ -103,6 +103,8 @@

Result

SimpleWebViewResult

Related pages

+

messages.getInlineBotResults

+

Query an inline bot

Bot web apps

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 @@ switch_pm flags.3?InlineBotSwitchPM -If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter. +If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to a private chat with the bot and sends the bot a start message with a certain parameter. switch_webview flags.4?InlineBotWebView -  +If passed, clients will display a button on top of the remaining inline result list with the specified text, that switches the user to the specified bot web app. @@ -310,7 +310,10 @@ -

Bots can use this method

+

Bots can use this method

+

Related pages

+

Bot web apps

+

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 @@ InlineBotWebView - + - + @@ -50,7 +42,8 @@ inlineBotWebView

InlineBotWebView

-

+

Specifies a bot web app button, shown on top of the inline query results list.

+

+ +

Related pages

+

Bot web apps

+

Bots can offer users interactive HTML5 web apps to completely replace any website.

diff --git a/data/web/corefork.telegram.org/type/messages.TranslatedText b/data/web/corefork.telegram.org/type/messages.TranslatedText index c26bd98ee5..762156a51a 100644 --- a/data/web/corefork.telegram.org/type/messages.TranslatedText +++ b/data/web/corefork.telegram.org/type/messages.TranslatedText @@ -86,7 +86,7 @@ messages.translateText -Translate a given text.

Text formatting will only be preserved for Telegram Premium users. +Translate a given text.

Styled text entities will only be preserved for Telegram Premium users.