From 583044840e158b0cccf9822da68979e3711be23f Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 4 Aug 2024 17:10:35 +0000 Subject: [PATCH] Update content of files --- .../corefork.telegram.org/api/bots/webapps.html | 7 ++++++- data/web/corefork.telegram.org/api/links.html | 14 +++++++------- data/web/corefork.telegram.org/api/paid-media.html | 2 +- data/web/fragment.com/css/auction.css | 10 +++++++++- 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/webapps.html b/data/web/corefork.telegram.org/api/bots/webapps.html index 4eedd7fa42..55e7a72958 100644 --- a/data/web/corefork.telegram.org/api/bots/webapps.html +++ b/data/web/corefork.telegram.org/api/bots/webapps.html @@ -54,7 +54,12 @@ ---functions--- messages.requestMainWebView#c9e01e7b flags:# compact:flags.7?true peer:InputPeer bot:InputUser start_param:flags.1?string theme_params:flags.0?DataJSON platform:string = WebViewResult; -

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

+

Main Mini Apps are configured through @botfather.

+

Once enabled, the user.bot_has_main_app flag will be set, and an "Open App" button should be shown on the bot's profile page.

+

Clicking on this button should open the Main Mini App, by invoking messages.requestMainWebView: no URL needs to be passed to the method, because the Main Mini App URL is configured through @botfather.

+

The bot's profile page should also show a list of photos and videos, previewing the features offered by the Main Mini App, see Main Mini App previews for more info on how to configure and render them.

+

Main Mini Apps are also featured in the in-app Mini App Store ».

+

The Main Mini App should also be directly opened when clicking on a Main Mini App deep link ».

Main Mini App previews

botInfo#8f300b57 flags:# has_preview_medias:flags.6?true user_id:flags.0?long description:flags.1?string description_photo:flags.4?Photo description_document:flags.5?Document commands:flags.2?Vector<BotCommand> menu_button:flags.3?BotMenuButton = BotInfo;
 
diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html
index d515593b79..2c2a7a352e 100644
--- a/data/web/corefork.telegram.org/api/links.html
+++ b/data/web/corefork.telegram.org/api/links.html
@@ -1230,10 +1230,10 @@ These links are used to confirm ownership of the phone number, to prevent accoun
 
 
 
-

Mini App links

-

Used to install and open a bot attachment or side menu ».
-Clients should first install the associated bot attachment or side menu entry as specified here », and if the user accepts the installation prompt, open the Mini App using the following logic.

-

After installing the attachment/side menu entry globally, opens the associated mini app using messages.requestSimpleWebView with the from_side_menu flag set, regardless of the currently open Telegram chat (in fact, the Mini App should opened with that flag even if the client itself is minimized).

+

Main Mini App links

+

Used to open Main Mini Apps ».

+

If the specified bot does not have a configured Main Mini App (i.e. the user.bot_has_main_app flag will not be set), fall back to the behavior of username links ».

+

The main mini app should be opened using messages.requestMainWebView.

t.me syntax:

t.me/<bot_username>?startapp&mode=<mode>
 t.me/<bot_username>?startapp=<start_parameter>&mode=<mode>
@@ -1254,17 +1254,17 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter>&am bot_username Required -Username of the bot that owns the attachment/side menu entry +Username of the bot that owns the main mini app » start_parameter Optional -If provided, should be passed to messages.requestSimpleWebView.start_param +If provided, should be passed to messages.requestMainWebView.start_param mode Optional -If equal to compact, the messages.requestSimpleWebView.compact flag must be set. +If equal to compact, the messages.requestMainWebView.compact flag must be set. diff --git a/data/web/corefork.telegram.org/api/paid-media.html b/data/web/corefork.telegram.org/api/paid-media.html index 16b7676549..8958fb0a49 100644 --- a/data/web/corefork.telegram.org/api/paid-media.html +++ b/data/web/corefork.telegram.org/api/paid-media.html @@ -108,7 +108,7 @@ This implies that if a certain client is offline, and another session purchases

For all messages satisfying the above conditions, make a single query to messages.getExtendedMedia, aggregating matching message IDs in id.
The method will return an array of updateMessageExtendedMedia updates, only for passed messages containing already bought paid media.
No information will be returned for passed messages containing not yet bought paid media, or not containing paid media.

-

Repeat the method call every 15 seconds if at least one of the messages satisfying the above conditions is still visible. +

Repeat the method call every 15 seconds if at least one of the messages satisfying the above conditions is still visible.
Repeat the method call immediately if a new paid message satisfying the above conditions scrolls into view.

diff --git a/data/web/fragment.com/css/auction.css b/data/web/fragment.com/css/auction.css index 01a70f305e..528cb14fc2 100644 --- a/data/web/fragment.com/css/auction.css +++ b/data/web/fragment.com/css/auction.css @@ -587,6 +587,8 @@ i.icon { right: 0; top: 0; z-index: 100; + padding-left: env(safe-area-inset-left); + padding-right: env(safe-area-inset-right); background-color: var(--header-bg-color); -webkit-backdrop-filter: blur(25px); backdrop-filter: blur(25px); @@ -937,6 +939,7 @@ a.tm-pagination-item.active:focus { right: 0; top: 0; bottom: 0; + padding-bottom: env(safe-area-inset-bottom); background: var(--bg-color); transition: transform var(--def-transition); } @@ -1135,6 +1138,8 @@ a.tm-menu-link:focus { } .tm-footer { + padding-left: env(safe-area-inset-left); + padding-right: env(safe-area-inset-right); background-color: var(--footer-bg-color); } .tm-footer-links { @@ -1305,7 +1310,7 @@ a.tm-menu-link:focus { .tm-main { margin: 0 auto; - width: 100%; + width: auto; max-width: 480px; padding-bottom: 70px; flex-grow: 1; @@ -3816,6 +3821,9 @@ a.tm-table-action-link:hover { .tm-main { max-width: 720px; + box-sizing: content-box; + padding-left: env(safe-area-inset-left); + padding-right: env(safe-area-inset-right); } .tm-main-premium { max-width: 480px;