From c3ca658c342edc3b174ae68555324a25460d58c7 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Thu, 1 Sep 2022 19:12:51 +0000 Subject: [PATCH] Update content of files --- .../api/bots/attach.html | 8 +- data/web/corefork.telegram.org/api/links.html | 92 +++++++++++++++++-- 2 files changed, 88 insertions(+), 12 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/attach.html b/data/web/corefork.telegram.org/api/bots/attach.html index 95cfc7eb63..ae1b187f05 100644 --- a/data/web/corefork.telegram.org/api/bots/attach.html +++ b/data/web/corefork.telegram.org/api/bots/attach.html @@ -77,8 +77,12 @@ messages.getAttachMenuBots#16fcc2cb hash:long = AttachMenuBots;

Bots that have the bot_attach_menu flag set offer an attachment menu entry that can be added to the attachment menu.
-Use messages.getAttachMenuBot to get info about the attachment menu entry.

-

Then, use messages.toggleBotInAttachMenu to enable or disable the attachment menu.
+Use messages.getAttachMenuBot to get info about the attachment menu entry, specifically:

+ +

Use messages.toggleBotInAttachMenu to enable or disable the attachment menu.
Changes made using this method will trigger an updateAttachMenuBots update in other clients, which should trigger a messages.getAttachMenuBots call to fetch the full updated list of installed attachment menu entries.

Once an attachment menu is enabled for a certain user, the user.attach_menu_enabled flag will be set for the bot, and the attachMenuBot.inactive flag will be unset.

diff --git a/data/web/corefork.telegram.org/api/links.html b/data/web/corefork.telegram.org/api/links.html index 7115ff0067..d03e5b1cba 100644 --- a/data/web/corefork.telegram.org/api/links.html +++ b/data/web/corefork.telegram.org/api/links.html @@ -974,18 +974,50 @@ These links are used to confirm ownership of the phone number, to prevent accoun

Bot attachment menu links

-

Used to install and optionally open a bot attachment menu » in a certain chat.

-

t.me syntax (install):

-
t.me/<bot_username>?startattach&choose=users+bots+groups+channels
-t.me/<bot_username>?startattach=<start_parameter>&choose=users+bots+groups+channels
-

t.me syntax (install+open in chat):

+

Used to install and optionally open a bot attachment menu » in a certain chat.
+For all link types, clients should:

+ +

Open in current chat

+

Installs and opens an attachment menu web app in the currently open chat.

+

t.me syntax:

+
t.me/<bot_username>?startattach
+t.me/<bot_username>?startattach=<start_parameter>
+

tg: syntax:

+
tg://resolve?domain=<bot_username>&startattach
+tg://resolve?domain=<bot_username>&startattach=<start_parameter>
+

Parameters:

+ + + + + + + + + + + + + + + + + + + + +
NameOptionalDescription
bot_usernameRequiredUsername of the bot that owns the attachment menu.
start_parameterOptionalIf provided, should be passed to messages.requestWebView.start_param.
+

Open in specific chat

+

Installs and opens an attachment menu web app in a specific chat.

+

t.me syntax:

t.me/<username>?attach=<bot_username>
 t.me/<username>?attach=<bot_username>&startattach=<start_parameter>
 t.me/+<phone_number>?attach=<bot_username>
 t.me/+<phone_number>?attach=<bot_username>&startattach=<start_parameter>
-

tg: syntax (install):

-
tg://resolve?domain=<bot_username>&startattach&choose=users+bots+groups+channels
-tg://resolve?domain=<bot_username>&startattach=<start_parameter>&choose=users+bots+groups+channels

tg: syntax (install+open in chat):

tg://resolve?domain=<username>&attach=<bot_username>
 tg://resolve?domain=<username>&attach=<bot_username>&startattach=<start_parameter>
@@ -1002,6 +1034,46 @@ tg://resolve?phone=<phone_number>&attach=<bot_username>&star
 
 
 
+username
+Required for username links
+Username of chat where to open web app.
+
+
+username
+Required for phone number links
+Phone number of private chat where to open web app.
+
+
+bot_username
+Required
+Username of the bot that owns the attachment menu.
+
+
+start_parameter
+Optional
+If provided, should be passed to messages.requestWebView.start_param.
+
+
+
+

Open in any chat

+

Installs an attachment menu, opens a dialog selection form that will open the attachment menu web app in a specific chat.

+

t.me syntax:

+
t.me/<bot_username>?startattach&choose=users+bots+groups+channels
+t.me/<bot_username>?startattach=<start_parameter>&choose=users+bots+groups+channels
+

tg: syntax (install):

+
tg://resolve?domain=<bot_username>&startattach&choose=users+bots+groups+channels
+tg://resolve?domain=<bot_username>&startattach=<start_parameter>&choose=users+bots+groups+channels
+

Parameters:

+ + + + + + + + + + @@ -1009,12 +1081,12 @@ tg://resolve?phone=<phone_number>&attach=<bot_username>&star - + - +
NameOptionalDescription
bot_username Required Username of the bot that owns the attachment menu
start_parameter OptionalIf provided, should be passed to messages.requestWebView.start_param.
choose OptionalA combination of users, bots, groups, channels separated by +: indicates the dialog types to show in the dialog selection popup.