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:
peer_types
indicates the dialog types supported by the attachment menuicons
contains a list of platform-specific static icons and animations to use for the attachment menu button.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.
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:
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:
+Name | +Optional | +Description | +
---|---|---|
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 . |
+
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:
+
+
+
+Name
+Optional
+Description
+
+
+
+
bot_username
Required
Username of the bot that owns the attachment menu
@@ -1009,12 +1081,12 @@ tg://resolve?phone=<phone_number>&attach=<bot_username>&star
start_parameter
Optional
-
+If provided, should be passed to messages.requestWebView.start_param
.
choose
Optional
-
+A combination of users
, bots
, groups
, channels
separated by +
: indicates the dialog types to show in the dialog selection popup.