From f2eec4957f846349e4b8679b7043291a334aa70a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 28 Aug 2022 19:21:55 +0000 Subject: [PATCH] Update content of files --- .../api/bots/attach.html | 51 ++++++++++--------- .../web/corefork.telegram.org/api/layers.html | 2 +- .../constructor/attachMenuBot.html | 7 ++- .../constructor/attachMenuBotIcon.html | 3 +- .../constructor/attachMenuBotIconColor.html | 3 +- .../constructor/attachMenuBots.html | 3 +- .../constructor/attachMenuBotsBot.html | 3 +- .../constructor/updateAttachMenuBots.html | 9 ++-- .../constructor/user.html | 3 +- .../method/messages.getAttachMenuBot | 3 +- .../method/messages.getAttachMenuBots | 3 +- .../method/messages.toggleBotInAttachMenu | 3 +- .../corefork.telegram.org/type/Update.html | 2 +- 13 files changed, 54 insertions(+), 41 deletions(-) diff --git a/data/web/corefork.telegram.org/api/bots/attach.html b/data/web/corefork.telegram.org/api/bots/attach.html index d7c65fab47..4764754507 100644 --- a/data/web/corefork.telegram.org/api/bots/attach.html +++ b/data/web/corefork.telegram.org/api/bots/attach.html @@ -2,16 +2,12 @@ - Attach + Bot attachment menu entries - - + + - + @@ -43,8 +39,8 @@ user#3ff6ecb0 flags:#…">
- -

Attach

+ +

Bot attachment menu entries

@@ -52,20 +48,9 @@ user#3ff6ecb0 flags:#…">

Schema:

user#3ff6ecb0 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string = User;
 
-updateAttachMenuBots#17b7a20b = Update;
-
-
-attachMenuBotIconColor#4576f3f0 name:string color:int = AttachMenuBotIconColor;
-
-attachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector<AttachMenuBotIconColor> = AttachMenuBotIcon;
-
-attachMenuBot#c8aa2cd2 flags:# inactive:flags.0?true has_settings:flags.1?true bot_id:long short_name:string peer_types:Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
-
-attachMenuBotsNotModified#f1d88a5c = AttachMenuBots;
-attachMenuBots#3c4301c0 hash:long bots:Vector<AttachMenuBot> users:Vector<User> = AttachMenuBots;
-
 attachMenuBotsBot#93bf667f bot:AttachMenuBot users:Vector<User> = AttachMenuBotsBot;
 
+attachMenuBot#c8aa2cd2 flags:# inactive:flags.0?true has_settings:flags.1?true bot_id:long short_name:string peer_types:Vector<AttachMenuPeerType> icons:Vector<AttachMenuBotIcon> = AttachMenuBot;
 
 attachMenuPeerTypeSameBotPM#7d6be90e = AttachMenuPeerType;
 attachMenuPeerTypeBotPM#c32bfa1a = AttachMenuPeerType;
@@ -73,13 +58,29 @@ user#3ff6ecb0 flags:#…">
 attachMenuPeerTypeChat#509113f = AttachMenuPeerType;
 attachMenuPeerTypeBroadcast#7bfbdefc = AttachMenuPeerType;
 
+attachMenuBotIcon#b2a7386b flags:# name:string icon:Document colors:flags.0?Vector<AttachMenuBotIconColor> = AttachMenuBotIcon;
+
+attachMenuBotIconColor#4576f3f0 name:string color:int = AttachMenuBotIconColor;
+
+
+updateAttachMenuBots#17b7a20b = Update;
+
+attachMenuBotsNotModified#f1d88a5c = AttachMenuBots;
+attachMenuBots#3c4301c0 hash:long bots:Vector<AttachMenuBot> users:Vector<User> = AttachMenuBots;
+
+
 ---functions---
 
-
-messages.getAttachMenuBots#16fcc2cb hash:long = AttachMenuBots;
 messages.getAttachMenuBot#77216192 bot:InputUser = AttachMenuBotsBot;
 
-messages.toggleBotInAttachMenu#1aee33af bot:InputUser enabled:Bool = Bool;
+messages.toggleBotInAttachMenu#1aee33af bot:InputUser enabled:Bool = Bool; + +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.
+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, the user.attach_menu_enabled flag of the bot will be set, and the attachMenuBot.inactive flag will be unset.

diff --git a/data/web/corefork.telegram.org/api/layers.html b/data/web/corefork.telegram.org/api/layers.html index 3ec270b87c..c11f6e5ee5 100644 --- a/data/web/corefork.telegram.org/api/layers.html +++ b/data/web/corefork.telegram.org/api/layers.html @@ -291,7 +291,7 @@
  • Added attachMenuBotsNotModified - The list of bot web apps hasn't changed
  • Added attachMenuBots - Represents a list of bot web apps that can be launched from the attachment menu »
  • Added attachMenuBotsBot - Represents a bot web app that can be launched from the attachment menu »
  • -
  • Added updateAttachMenuBots - The list of added bot web apps » has changed, use messages.getAttachMenuBots to fetch the updated list.
  • +
  • Added updateAttachMenuBots - The list of installed attachment menu entries » has changed, use messages.getAttachMenuBots to fetch the updated list.
  • Added webViewResultUrl - Contains the webview URL with appropriate theme and user info parameters added
  • Added simpleWebViewResultUrl - Contains the webview URL with appropriate theme parameters added
  • Added webViewMessageSent - Info about a sent inline webview message
  • diff --git a/data/web/corefork.telegram.org/constructor/attachMenuBot.html b/data/web/corefork.telegram.org/constructor/attachMenuBot.html index 717b9fa8a9..4fe2ade162 100644 --- a/data/web/corefork.telegram.org/constructor/attachMenuBot.html +++ b/data/web/corefork.telegram.org/constructor/attachMenuBot.html @@ -79,7 +79,7 @@ has_settings flags.1?true -True, if the bot supports the "settings_button_pressed" event +True, if the bot supports the "settings_button_pressed" event » bot_id @@ -108,7 +108,10 @@

    Related pages

    messages.toggleBotInAttachMenu

    Enable or disable web bot attachment menu »

    -

    Attach

    +

    Bot web apps

    +

    Bots can offer users interactive HTML5 web apps to completely replace any website.

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/constructor/attachMenuBotIcon.html b/data/web/corefork.telegram.org/constructor/attachMenuBotIcon.html index 708cfdaa6f..95dbdda737 100644 --- a/data/web/corefork.telegram.org/constructor/attachMenuBotIcon.html +++ b/data/web/corefork.telegram.org/constructor/attachMenuBotIcon.html @@ -91,7 +91,8 @@

    Type

    AttachMenuBotIcon

    Related pages

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/constructor/attachMenuBotIconColor.html b/data/web/corefork.telegram.org/constructor/attachMenuBotIconColor.html index c6cb286459..6b066d256f 100644 --- a/data/web/corefork.telegram.org/constructor/attachMenuBotIconColor.html +++ b/data/web/corefork.telegram.org/constructor/attachMenuBotIconColor.html @@ -81,7 +81,8 @@

    Type

    AttachMenuBotIconColor

    Related pages

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/constructor/attachMenuBots.html b/data/web/corefork.telegram.org/constructor/attachMenuBots.html index 4f2d9c92ed..577142903f 100644 --- a/data/web/corefork.telegram.org/constructor/attachMenuBots.html +++ b/data/web/corefork.telegram.org/constructor/attachMenuBots.html @@ -88,7 +88,8 @@

    Related pages

    Pagination in the API

    How to fetch results from large lists of objects.

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/constructor/attachMenuBotsBot.html b/data/web/corefork.telegram.org/constructor/attachMenuBotsBot.html index fdf31a4255..73b904f863 100644 --- a/data/web/corefork.telegram.org/constructor/attachMenuBotsBot.html +++ b/data/web/corefork.telegram.org/constructor/attachMenuBotsBot.html @@ -81,7 +81,8 @@

    Type

    AttachMenuBotsBot

    Related pages

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/constructor/updateAttachMenuBots.html b/data/web/corefork.telegram.org/constructor/updateAttachMenuBots.html index b350297084..142fdee84f 100644 --- a/data/web/corefork.telegram.org/constructor/updateAttachMenuBots.html +++ b/data/web/corefork.telegram.org/constructor/updateAttachMenuBots.html @@ -4,10 +4,10 @@ updateAttachMenuBots - + - + @@ -42,7 +42,7 @@

    updateAttachMenuBots

    -

    The list of added bot web apps » has changed, use messages.getAttachMenuBots to fetch the updated list.

    +

    The list of installed attachment menu entries » has changed, use messages.getAttachMenuBots to fetch the updated list.

    diff --git a/data/web/corefork.telegram.org/constructor/user.html b/data/web/corefork.telegram.org/constructor/user.html index 2ac42a9a13..2cc7c71b15 100644 --- a/data/web/corefork.telegram.org/constructor/user.html +++ b/data/web/corefork.telegram.org/constructor/user.html @@ -228,7 +228,8 @@

    Related pages

    Min constructors

    In some situations user and channel constructors have reduced set of fields present (although id is always there) and min flag set.

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    userFull

    Extended user info

    diff --git a/data/web/corefork.telegram.org/method/messages.getAttachMenuBot b/data/web/corefork.telegram.org/method/messages.getAttachMenuBot index 0a96a86c37..01d1ec7c03 100644 --- a/data/web/corefork.telegram.org/method/messages.getAttachMenuBot +++ b/data/web/corefork.telegram.org/method/messages.getAttachMenuBot @@ -95,7 +95,8 @@

    Related pages

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/method/messages.getAttachMenuBots b/data/web/corefork.telegram.org/method/messages.getAttachMenuBots index be779e6017..34a1ac666c 100644 --- a/data/web/corefork.telegram.org/method/messages.getAttachMenuBots +++ b/data/web/corefork.telegram.org/method/messages.getAttachMenuBots @@ -81,7 +81,8 @@

    Related pages

    Pagination in the API

    How to fetch results from large lists of objects.

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/method/messages.toggleBotInAttachMenu b/data/web/corefork.telegram.org/method/messages.toggleBotInAttachMenu index cca02f86dd..7c8a935768 100644 --- a/data/web/corefork.telegram.org/method/messages.toggleBotInAttachMenu +++ b/data/web/corefork.telegram.org/method/messages.toggleBotInAttachMenu @@ -84,7 +84,8 @@

    Result

    Bool

    Related pages

    -

    Attach

    +

    Bot attachment menu entries

    +

    Bots can install attachment menu entries, offering conveniently accessible, versatile web apps.

    diff --git a/data/web/corefork.telegram.org/type/Update.html b/data/web/corefork.telegram.org/type/Update.html index a21dc86cfc..c1644793b5 100644 --- a/data/web/corefork.telegram.org/type/Update.html +++ b/data/web/corefork.telegram.org/type/Update.html @@ -552,7 +552,7 @@ updateAttachMenuBots -The list of added bot web apps » has changed, use messages.getAttachMenuBots to fetch the updated list. +The list of installed attachment menu entries » has changed, use messages.getAttachMenuBots to fetch the updated list. updateWebViewResultSent