From 7ef77f0ebbefedc2b7c9f6cb865d76849e9fd64c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 26 Oct 2022 20:03:52 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/web-events.html | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/data/web/corefork.telegram.org/api/web-events.html b/data/web/corefork.telegram.org/api/web-events.html index ce07ec5dc2..a2e88b46c1 100644 --- a/data/web/corefork.telegram.org/api/web-events.html +++ b/data/web/corefork.telegram.org/api/web-events.html @@ -77,10 +77,15 @@ The GamingCommunication and bot web apps libraries by default will use '*'

Emitted by bot web apps when to open a native pop-up over the webview.

+

By default, buttons should be displayed on one row.
+If the web app provides two buttons that can't fit horizontally on one row, display each button on a separate row.
+If the web app provides three buttons, always display each button on a separate row.

+

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.

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.