From 581a0cb2bca893762546cf348800c33b12d91566 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 26 Oct 2022 20:18:15 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/bots/webapps.html | 12 ++++++------ data/web/corefork.telegram.org/api/web-events.html | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html index 782325cab7..768f975496 100644 --- a/data/web/corefork.telegram.org/api/bots/webapps.html +++ b/data/web/corefork.telegram.org/api/bots/webapps.html @@ -54,13 +54,13 @@

Here's the full list of events that can be received by a web app from the client, by calling the receiveEvent method.

main_button_pressed

Params: null

-

Sent by the client when the user presses the main button, if it was previously configured by a web_app_setup_main_button event ».

+

Sent by the client when the user presses the main button located at the bottom of the webview, handle this event only if the main button was previously configured by a web_app_setup_main_button event ».

settings_button_pressed

Params: null

Sent by the client when the user presses the settings button, if it was previously enabled in @BotFather, as specified by the has_settings flag of attachMenuBot ».

back_button_pressed

Params: null

-

Sent by the client when the user presses the back button, if it was previously enabled by a web_app_setup_back_button event ».

+

Sent by the client when the user presses the (OS or UI) back button, if it was previously enabled by a web_app_setup_back_button event ».

invoice_closed

Params: JSON object with the following fields:

-

Ignore instances of this event if a popup is already being displayed (handling can only resume after the popup_closed response event is emitted).
-Maximum 3 consecutive events of this type can be handled in a timespan of 3 seconds, ignore excess events.

+

Disable handling of this event if a popup is already being displayed, re-enable handling only after the popup_closed response event is emitted.
+While handling is enabled, maximum 3 consecutive valid events of this type can be handled in a timespan of 3 seconds, ignore excess events.

web_app_setup_closing_behavior

Event data: a JSON object with a boolean need_confirmation.

-

If equal to true, the client should require user confirmation before closing the webview, to avoid accidentally aborting a sensitive operation; otherwise no confirmation should be requested.

+

If equal to true, the client should require user confirmation with a "Changes that you made may not be saved." popup with "Cancel"/"Close anyway" buttons before closing the webview, to avoid accidentally aborting a sensitive operation; otherwise no confirmation should be requested.

web_app_set_background_color

Event data: a JSON object with a string color with a hex RGB color.

Used to set the web app background and lower overscroll color.