From 6545b04e7815b8f0e6749db7ba384c5b5a758b80 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 21 Jul 2024 17:30:28 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/links.html | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html index 8357e587e9..8dda8abe5c 100644 --- a/data/web/corefork.telegram.org/api/links.html +++ b/data/web/corefork.telegram.org/api/links.html @@ -275,8 +275,7 @@ These links should be handled as follows:

  • Append and select the text, if present
  • t.me syntax:

    -
    t.me/share?url=<url>
    -t.me/share?url=<url>&text=<text>
    +
    t.me/share?url=<url>&text=<text>

    tg: syntax:

    tg://msg_url?url=<url>&text=<text>

    Parameters:

    @@ -1206,12 +1205,12 @@ These links are used to confirm ownership of the phone number, to prevent accoun 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).

    t.me syntax:

    -
    t.me/<bot_username>?startapp
    -t.me/<bot_username>?startapp=<start_parameter>
    +
    t.me/<bot_username>?startapp&mode=<mode>
    +t.me/<bot_username>?startapp=<start_parameter>&mode=<mode>

    Note that Direct Mini App links have a similar syntax, with an additional short_name parameter to identify a specific Mini App owned by the bot.

    tg: syntax:

    -
    tg://resolve?domain=<bot_username>&startapp
    -tg://resolve?domain=<bot_username>&startapp=<start_parameter>
    +
    tg://resolve?domain=<bot_username>&startapp&mode=<mode>
    +tg://resolve?domain=<bot_username>&startapp=<start_parameter>&mode=<mode>

    Parameters:

    @@ -1232,6 +1231,11 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter>Optional + + + + +
    If provided, should be passed to messages.requestSimpleWebView.start_param
    modeOptionalIf equal to compact, the app should be opened in compact mode.

    Direct mini app links

    @@ -1239,9 +1243,9 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter>These links are different from bot attachment menu deep links, because they don't require the user to install an attachment menu, and a single bot can offer multiple named mini apps, distinguished by their short_name.

    These links should be handled as specified in the direct link Mini Apps documentation ».

    t.me syntax:

    -
    t.me/<bot_username>/<short_name>?startapp=<start_parameter>
    +
    t.me/<bot_username>/<short_name>?startapp=<start_parameter>&mode=<mode>

    tg: syntax:

    -
    tg://resolve?domain=<bot_username>&appname=<short_name>&startapp=<start_parameter>
    +
    tg://resolve?domain=<bot_username>&appname=<short_name>&startapp=<start_parameter>&mode=<mode>

    Note that Mini App links have a similar syntax, without a short_name parameter.

    Parameters:

    @@ -1268,6 +1272,11 @@ tg://resolve?domain=<bot_username>&startapp=<start_parameter>Optional + + + + +
    start_param to pass to messages.requestAppWebView
    modeOptionalIf equal to compact, the app should be opened in compact mode.

    Bot attachment or side menu links