diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs
index 285b091..6afd8fb 100644
--- a/src/TL.Schema.cs
+++ b/src/TL.Schema.cs
@@ -14128,7 +14128,7 @@ namespace TL
{
/// Extra bits of information, use flags.HasFlag(...) to test for those
public Flags flags;
- /// One of the following values: note that animated icons must be played when the user clicks on the button, activating the bot mini app.
default_static - Default attachment menu icon in SVG format
placeholder_static - Default placeholder for opened Web Apps in SVG format
ios_static - Attachment menu icon in SVG format for the official iOS app
ios_animated - Animated attachment menu icon in TGS format for the official iOS app
android_animated - Animated attachment menu icon in TGS format for the official Android app
macos_animated - Animated attachment menu icon in TGS format for the official native Mac OS app
+ /// One of the following values: note that animated icons must be played when the user clicks on the button, activating the bot mini app.
default_static - Default attachment menu icon in SVG format
placeholder_static - Default placeholder for opened Web Apps in SVG format
ios_static - Attachment menu icon in SVG format for the official iOS app
ios_animated - Animated attachment menu icon in TGS format for the official iOS app
android_animated - Animated attachment menu icon in TGS format for the official Android app
macos_animated - Animated attachment menu icon in TGS format for the official native Mac OS app
ios_side_menu_static - Side menu icon in PNG format for the official iOS app
android_side_menu_static - Side menu icon in SVG format for the official android app
macos_side_menu_static - Side menu icon in PNG format for the official native Mac OS app
public string name;
/// The actual icon file.
public DocumentBase icon;
@@ -14142,7 +14142,7 @@ namespace TL
}
}
- /// Represents a bot mini app that can be launched from the attachment menu » See
+ /// Represents a bot mini app that can be launched from the attachment/side menu » See
[TLDef(0xD90D8DFE)]
public class AttachMenuBot : IObject
{
@@ -14159,14 +14159,17 @@ namespace TL
[Flags] public enum Flags : uint
{
- /// Whether this bot attachment menu entry should be shown in the attachment menu (toggle using Messages_ToggleBotInAttachMenu)
+ /// If set, before launching the mini app the client should ask the user to add the mini app to the attachment/side menu, and only if the user accepts, after invoking Messages_ToggleBotInAttachMenu the app should be opened.
inactive = 0x1,
/// True, if the bot supports the "settings_button_pressed" event »
has_settings = 0x2,
/// Whether the bot would like to send messages to the user.
request_write_access = 0x4,
+ /// Whether, when installed, an attachment menu entry should be shown for the Mini App.
show_in_attach_menu = 0x8,
+ /// Whether, when installed, an entry in the main view side menu should be shown for the Mini App.
show_in_side_menu = 0x10,
+ /// If inactive if set and the user hasn't previously accepted the third-party mini apps Terms of Service for this bot, when showing the mini app installation prompt, an additional mandatory checkbox to accept the mini apps TOS and a disclaimer indicating that this Mini App is not affiliated to Telegram should be shown.
side_menu_disclaimer_needed = 0x20,
}
}
diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs
index 8fc5ebf..9c77ed5 100644
--- a/src/TL.SchemaFuncs.cs
+++ b/src/TL.SchemaFuncs.cs
@@ -1436,7 +1436,7 @@ namespace TL
limit = limit,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns the list of messages by their IDs. See [bots: ✓]
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns the list of messages by their IDs. See [bots: ✓]
/// Message ID list
public static Task Messages_GetMessages(this Client client, params InputMessage[] id)
=> client.Invoke(new Messages_GetMessages
@@ -1546,7 +1546,7 @@ namespace TL
max_date = max_date.GetValueOrDefault(),
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes messages by their identifiers. See [bots: ✓] Possible codes: 400,403 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes messages by their identifiers. See [bots: ✓] Possible codes: 400,403 (details)
/// Whether to delete messages for all participants of the chat
/// Message ID list
public static Task Messages_DeleteMessages(this Client client, int[] id, bool revoke = false)
@@ -1556,7 +1556,7 @@ namespace TL
id = id,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Confirms receipt of messages by a client, cancels PUSH-notification sending. See
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Confirms receipt of messages by a client, cancels PUSH-notification sending. See
/// Maximum message ID available in a client.
public static Task Messages_ReceivedMessages(this Client client, int max_id = default)
=> client.Invoke(new Messages_ReceivedMessages
@@ -1693,7 +1693,7 @@ namespace TL
message = message,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns chat basic info on their IDs. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Returns chat basic info on their IDs. See [bots: ✓] Possible codes: 400 (details)
/// List of chat IDs
public static Task Messages_GetChats(this Client client, params long[] id)
=> client.Invoke(new Messages_GetChats
@@ -1701,7 +1701,7 @@ namespace TL
id = id,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Get full info about a basic group. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Get full info about a basic group. See [bots: ✓] Possible codes: 400 (details)
/// Basic group ID.
public static Task Messages_GetFullChat(this Client client, long chat_id)
=> client.Invoke(new Messages_GetFullChat
@@ -1709,7 +1709,7 @@ namespace TL
chat_id = chat_id,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat name and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat name and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
/// Chat ID
/// New chat name, different from the old one
public static Task Messages_EditChatTitle(this Client client, long chat_id, string title)
@@ -1719,7 +1719,7 @@ namespace TL
title = title,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat photo and sends a service message on it See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Changes chat photo and sends a service message on it See [bots: ✓] Possible codes: 400 (details)
/// Chat ID
/// Photo to be set
public static Task Messages_EditChatPhoto(this Client client, long chat_id, InputChatPhotoBase photo)
@@ -1729,7 +1729,7 @@ namespace TL
photo = photo,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Adds a user to a chat and sends a service message on it. See Possible codes: 400,403 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Adds a user to a chat and sends a service message on it. See Possible codes: 400,403 (details)
/// Chat ID
/// User ID to be added
/// Number of last messages to be forwarded
@@ -1741,7 +1741,7 @@ namespace TL
fwd_limit = fwd_limit,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes a user from a chat and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Deletes a user from a chat and sends a service message on it. See [bots: ✓] Possible codes: 400 (details)
/// Remove the entire chat history of the specified user in this chat.
/// Chat ID
/// User ID to be deleted
@@ -1888,7 +1888,7 @@ namespace TL
peer = peer,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Notifies the sender about the recipient having listened a voice message or watched a video. See
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Notifies the sender about the recipient having listened a voice message or watched a video. See
/// Message ID list
public static Task Messages_ReadMessageContents(this Client client, params int[] id)
=> client.Invoke(new Messages_ReadMessageContents
@@ -2016,7 +2016,7 @@ namespace TL
increment = increment,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Make a user admin in a basic group. See Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Make a user admin in a basic group. See Possible codes: 400 (details)
/// The ID of the group
/// The user to make admin
/// Whether to make them admin
@@ -2028,7 +2028,7 @@ namespace TL
is_admin = is_admin,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Turn a basic group into a supergroup See Possible codes: 400,403,500 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Turn a basic group into a supergroup See Possible codes: 400,403,500 (details)
/// Basic group to migrate
public static Task Messages_MigrateChat(this Client client, long chat_id)
=> client.Invoke(new Messages_MigrateChat
@@ -2103,7 +2103,7 @@ namespace TL
unsave = unsave,
});
- /// Query an inline bot See Possible codes: -503,400,406 (details)
+ /// Query an inline bot See Possible codes: 400,406,-503 (details)
/// The bot to query
/// The currently opened chat
/// The geolocation, if requested
@@ -2216,7 +2216,7 @@ namespace TL
entities = entities,
});
- /// Press an inline callback button and get a callback answer from the bot See Possible codes: -503,400 (details)
+ /// Press an inline callback button and get a callback answer from the bot See Possible codes: 400,-503 (details)
/// Whether this is a "play game" button
/// Where was the inline keyboard sent
/// ID of the Message with the inline keyboard
@@ -2967,7 +2967,7 @@ namespace TL
top_msg_id = top_msg_id.GetValueOrDefault(),
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Delete a chat See Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Delete a chat See Possible codes: 400 (details)
/// Chat ID
public static Task Messages_DeleteChat(this Client client, long chat_id)
=> client.Invoke(new Messages_DeleteChat
@@ -3397,7 +3397,7 @@ namespace TL
/// Dialog where the web app is being opened, and where the resulting message will be sent (see the docs for more info »).
/// Bot that owns the web app
/// Web app URL
- /// If the web app was opened from the attachment menu using a attachment menu deep link, start_param should contain the data from the startattach parameter.
+ /// If the web app was opened from the attachment menu using a attachment menu deep link, start_param should contain the data from the startattach parameter.
/// Theme parameters »
/// Short name of the application; 0-64 English letters, digits, and underscores
/// If set, indicates that the inline message that will be sent by the bot on behalf of the user once the web app interaction is Messages_SendWebViewResultMessage should be sent in reply to the specified message or story.
@@ -3436,8 +3436,10 @@ namespace TL
/// Open a bot mini app. See
/// Whether the webapp was opened by clicking on the switch_webview button shown on top of the inline results list returned by Messages_GetInlineBotResults.
+ /// Set this flag if opening the Mini App from the installed side menu entry » or from a startapp link ».
/// Bot that owns the mini app
- /// Web app URL
+ /// Web app URL, if opening from a keyboard button or inline result
+ /// Start parameter, if opening from a startapp link ».
/// Theme parameters »
/// Short name of the application; 0-64 English letters, digits, and underscores
public static Task Messages_RequestSimpleWebView(this Client client, InputUserBase bot, string platform, DataJSON theme_params = null, string url = null, string start_param = null, bool from_switch_webview = false, bool from_side_menu = false)
@@ -3451,7 +3453,7 @@ namespace TL
platform = platform,
});
- /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Terminate webview interaction started with Messages_RequestWebView, sending the specified message to the chat on behalf of the user. See [bots: ✓] Possible codes: 400 (details)
+ /// ⚠ This method is only for basic Chat. See Terminology to understand what this means
Search for a similar method name starting with Channels_ if you're dealing with a Terminate webview interaction started with Messages_RequestWebView, sending the specified message to the chat on behalf of the user. See [bots: ✓] Possible codes: 400 (details)
/// Webview interaction ID obtained from Messages_RequestWebView
/// Message to send
public static Task Messages_SendWebViewResultMessage(this Client client, string bot_query_id, InputBotInlineResultBase result)
@@ -4839,21 +4841,26 @@ namespace TL
active = active,
});
- /// See Possible codes: 400 (details)
+ /// Check whether the specified bot can send us messages See Possible codes: 400 (details)
+ /// The bot
public static Task Bots_CanSendMessage(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_CanSendMessage
{
bot = bot,
});
- /// See Possible codes: 400 (details)
+ /// Allow the specified bot to send us messages See Possible codes: 400 (details)
+ /// The bot
public static Task Bots_AllowSendMessage(this Client client, InputUserBase bot)
=> client.Invoke(new Bots_AllowSendMessage
{
bot = bot,
});
- /// See Possible codes: 400 (details)
+ /// Send a custom request from a mini bot app See Possible codes: 400 (details)
+ /// Identifier of the bot associated to the mini bot app
+ /// Identifier of the custom method to invoke
+ /// Method parameters
public static Task Bots_InvokeWebViewCustomMethod(this Client client, InputUserBase bot, string custom_method, DataJSON params_)
=> client.Invoke(new Bots_InvokeWebViewCustomMethod
{