From 98f6a26b09a5c12a03ded180107b7e4687168ffa Mon Sep 17 00:00:00 2001 From: Wizou <11647984+wiz0u@users.noreply.github.com> Date: Thu, 11 May 2023 12:46:34 +0200 Subject: [PATCH] api doc --- src/TL.Schema.cs | 130 ++++++++++++++++++++++++++++++++---------- src/TL.SchemaFuncs.cs | 92 +++++++++++++++++++++--------- 2 files changed, 165 insertions(+), 57 deletions(-) diff --git a/src/TL.Schema.cs b/src/TL.Schema.cs index 8c3c566..f239e33 100644 --- a/src/TL.Schema.cs +++ b/src/TL.Schema.cs @@ -384,6 +384,7 @@ namespace TL public DataJSON provider_data; /// Unique bot deep links start parameter. If present, forwarded copies of the sent message will have a URL button with a deep link to the bot (instead of a Pay button), with the value used as the start parameter. If absent, forwarded copies of the sent message will have a Pay button, allowing multiple users to pay directly from the forwarded message, using the same invoice. [IfFlag(1)] public string start_param; + /// Extended media [IfFlag(2)] public InputMedia extended_media; [Flags] public enum Flags : uint @@ -814,6 +815,7 @@ namespace TL { /// Field has a value has_usernames = 0x1, + /// Whether we can edit the profile picture, name, about text and description of this bot because we own it. bot_can_edit = 0x2, } } @@ -1842,6 +1844,7 @@ namespace TL public long total_amount; /// Unique bot deep-linking parameter that can be used to generate this invoice public string start_param; + /// Extended media [IfFlag(4)] public MessageExtendedMediaBase extended_media; [Flags] public enum Flags : uint @@ -2214,7 +2217,9 @@ namespace TL public long amount; /// Duration of the gifted Telegram Premium subscription public int months; + /// If the gift was bought using a cryptocurrency, the cryptocurrency name. [IfFlag(0)] public string crypto_currency; + /// If the gift was bought using a cryptocurrency, price of the gift in the smallest units of a cryptocurrency. [IfFlag(0)] public long crypto_amount; [Flags] public enum Flags : uint @@ -2285,13 +2290,14 @@ namespace TL /// The shared peer public Peer peer; } - /// See + /// The wallpaper » of the current chat was changed. See [TLDef(0xBC44A927)] public class MessageActionSetChatWallPaper : MessageAction { + /// New wallpaper public WallPaperBase wallpaper; } - /// See + /// The user applied a wallpaper » previously sent by the other user in a message. See [TLDef(0xC0787D6D)] public class MessageActionSetSameChatWallPaper : MessageActionSetChatWallPaper { } @@ -2564,10 +2570,11 @@ namespace TL has_timeout = 0x4, } } - /// See + /// The user successfully authorized using future auth tokens See [TLDef(0x2390FE44)] public class Auth_SentCodeSuccess : Auth_SentCodeBase { + /// Authorization info public Auth_AuthorizationBase authorization; } @@ -2884,7 +2891,7 @@ namespace TL [IfFlag(14)] public int ttl_period; /// Emoji associated with chat theme [IfFlag(15)] public string theme_emoticon; - /// Anonymized text to be shown instead of the the user's name on forwarded messages + /// Anonymized text to be shown instead of the user's name on forwarded messages [IfFlag(16)] public string private_forward_name; /// A suggested set of administrator rights for the bot, to be shown when adding the bot as admin to a group, see here for more info on how to handle them ». [IfFlag(17)] public ChatAdminRights bot_group_admin_rights; @@ -2892,6 +2899,7 @@ namespace TL [IfFlag(18)] public ChatAdminRights bot_broadcast_admin_rights; /// Telegram Premium subscriptions gift options [IfFlag(19)] public PremiumGiftOption[] premium_gifts; + /// Wallpaper to use in the private chat with the user. [IfFlag(24)] public WallPaperBase wallpaper; [Flags] public enum Flags : uint @@ -4119,7 +4127,7 @@ namespace TL public int read_max_id; /// If set, contains the ID of the channel that contains the post that started the comment thread in the discussion group (channel_id) [IfFlag(0)] public long broadcast_id; - /// If set, contains the ID of the channel post that started the the comment thread + /// If set, contains the ID of the channel post that started the comment thread [IfFlag(0)] public int broadcast_post; [Flags] public enum Flags : uint @@ -4319,6 +4327,7 @@ namespace TL has_new_participant = 0x2, /// Field has a value has_invite = 0x4, + /// Whether the participant joined using a chat folder deep link ». via_chatlist = 0x8, } } @@ -4486,12 +4495,15 @@ namespace TL emojis = 0x2, } } - /// See + /// Extended media update See [TLDef(0x5A73A98C)] public class UpdateMessageExtendedMedia : Update { + /// Peer public Peer peer; + /// Message ID public int msg_id; + /// Extended media public MessageExtendedMediaBase extended_media; } /// A forum topic » was pinned or unpinned. See @@ -6573,7 +6585,7 @@ namespace TL public class KeyboardButtonRequestGeoLocation : KeyboardButton { } - /// Button to force a user to switch to inline mode Pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. See + /// Button to force a user to switch to inline mode: pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. See [TLDef(0x93B9FBB5)] public class KeyboardButtonSwitchInline : KeyboardButtonBase { @@ -6583,6 +6595,7 @@ namespace TL public string text; /// The inline query to use public string query; + /// Filter to use when selecting chats. [IfFlag(1)] public InlineQueryPeerType[] peer_types; [Flags] public enum Flags : uint @@ -7971,7 +7984,9 @@ namespace TL public string email_pattern; /// Length of the sent verification code public int length; + /// The login email can be reset by invoking Auth_ResetLoginEmail and waiting for the specified amount of seconds. [IfFlag(3)] public int reset_available_period; + /// An email reset was already requested, and will occur at the specified date. [IfFlag(4)] public DateTime reset_pending_date; [Flags] public enum Flags : uint @@ -8016,7 +8031,9 @@ namespace TL public Flags flags; /// On Android, the nonce to be used as described in the auth documentation » [IfFlag(0)] public byte[] nonce; + /// On iOS, must be compared with the receipt extracted from the received push notification. [IfFlag(1)] public string receipt; + /// On iOS: if a push notification with the ios_push_secret isn't received within push_timeout seconds, the next_type authentication method must be used, with Auth_ResendCode. [IfFlag(1)] public int push_timeout; [Flags] public enum Flags : uint @@ -10147,6 +10164,7 @@ namespace TL [Flags] public enum Flags : uint { + /// The participant joined by importing a chat folder deep link ». via_chatlist = 0x1, } } @@ -11634,7 +11652,9 @@ namespace TL public Flags flags; /// Previously stored future auth tokens, see the documentation for more info » [IfFlag(6)] public byte[][] logout_tokens; + /// Used only by official iOS apps for Firebase auth: device token for apple push. [IfFlag(8)] public string token; + /// Used only by official iOS apps for firebase auth: whether a sandbox-certificate will be used during transmission of the push notification. [IfFlag(8)] public bool app_sandbox; [Flags] public enum Flags : uint @@ -12257,7 +12277,7 @@ namespace TL public virtual int ID { get; } /// Folder name public virtual string Title { get; } - /// Folder emoticon + /// Emoji to use as icon for the folder. public virtual string Emoticon { get; } /// Pinned chats, folders can have unlimited pinned chats public virtual InputPeer[] PinnedPeers { get; } @@ -12274,7 +12294,7 @@ namespace TL public int id; /// Folder name public string title; - /// Folder emoticon + /// Emoji to use as icon for the folder. [IfFlag(25)] public string emoticon; /// Pinned chats, folders can have unlimited pinned chats public InputPeer[] pinned_peers; @@ -12309,36 +12329,47 @@ namespace TL public override int ID => id; /// Folder name public override string Title => title; - /// Folder emoticon + /// Emoji to use as icon for the folder. public override string Emoticon => emoticon; /// Pinned chats, folders can have unlimited pinned chats public override InputPeer[] PinnedPeers => pinned_peers; /// Include the following chats in this folder public override InputPeer[] IncludePeers => include_peers; } - /// See + /// A folder imported using a chat folder deep link ». See [TLDef(0xD64A04A8)] public class DialogFilterChatlist : DialogFilterBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// ID of the folder public int id; + /// Name of the folder public string title; + /// Emoji to use as icon for the folder. [IfFlag(25)] public string emoticon; + /// Pinned chats, folders can have unlimited pinned chats public InputPeer[] pinned_peers; + /// Chats to include in the folder public InputPeer[] include_peers; [Flags] public enum Flags : uint { /// Field has a value has_emoticon = 0x2000000, + /// Whether the current user has created some chat folder deep links » to share the folder as well. has_my_invites = 0x4000000, } + /// ID of the folder public override int ID => id; + /// Name of the folder public override string Title => title; + /// Emoji to use as icon for the folder. public override string Emoticon => emoticon; + /// Pinned chats, folders can have unlimited pinned chats public override InputPeer[] PinnedPeers => pinned_peers; + /// Chats to include in the folder public override InputPeer[] IncludePeers => include_peers; } @@ -13045,20 +13076,20 @@ namespace TL public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// Type of the chat from which the inline query was sent. See + /// Inline query peer type. See public enum InlineQueryPeerType : uint { - ///The inline query was sent in a private chat with the bot itself + ///Peer type: private chat with the bot itself SameBotPM = 0x3081ED9D, - ///The inline query was sent in a private chat + ///Peer type: private chat PM = 0x833C0FAC, - ///The inline query was sent in a chat + ///Peer type: chat Chat = 0xD766C50A, - ///The inline query was sent in a supergroup + ///Peer type: supergroup Megagroup = 0x5EC4BE43, - ///The inline query was sent in a channel + ///Peer type: channel Broadcast = 0x6334EE9A, - ///See + ///Peer type: private chat with a bot. BotPM = 0x0E3B2D0C, } @@ -13127,6 +13158,7 @@ namespace TL has_approved_by = 0x2, /// Field has a value has_about = 0x4, + /// The participant joined by importing a chat folder deep link ». via_chatlist = 0x8, } } @@ -14212,17 +14244,21 @@ namespace TL } } - /// See Derived classes: , + /// Extended media See Derived classes: , public abstract class MessageExtendedMediaBase : IObject { } - /// See + /// Extended media preview See [TLDef(0xAD628CC8)] public class MessageExtendedMediaPreview : MessageExtendedMediaBase { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Width [IfFlag(0)] public int w; + /// Height [IfFlag(0)] public int h; + /// Thumbnail [IfFlag(1)] public PhotoSizeBase thumb; + /// Video duration [IfFlag(2)] public int video_duration; [Flags] public enum Flags : uint @@ -14235,10 +14271,11 @@ namespace TL has_video_duration = 0x4, } } - /// See + /// Extended media See [TLDef(0xEE479C64)] public class MessageExtendedMedia : MessageExtendedMediaBase { + /// Media public MessageMedia media; } @@ -14682,23 +14719,27 @@ namespace TL public DateTime date; } - /// See Derived classes: + /// Represents a folder See Derived classes: public abstract class InputChatlist : IObject { } - /// See + /// Folder ID See [TLDef(0xF3E0DA33)] public class InputChatlistDialogFilter : InputChatlist { + /// Folder ID public int filter_id; } - /// See + /// Exported chat folder deep link ». See [TLDef(0x0C5181AC)] public class ExportedChatlistInvite : IObject { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Name of the link public string title; + /// The chat folder deep link ». public string url; + /// Peers to import public Peer[] peers; [Flags] public enum Flags : uint @@ -14706,56 +14747,75 @@ namespace TL } } - /// See + /// Info about an exported chat folder deep link ». See [TLDef(0x10E6E3A6)] public class Chatlists_ExportedChatlistInvite : IObject { + /// Folder ID public DialogFilterBase filter; + /// The exported chat folder deep link ». public ExportedChatlistInvite invite; } - /// See + /// Info about multiple chat folder deep links ». See [TLDef(0x10AB6DC7)] public class Chatlists_ExportedInvites : IObject, IPeerResolver { + /// The chat folder deep links ». public ExportedChatlistInvite[] invites; + /// Related chat information public Dictionary chats; + /// Related user information public Dictionary users; /// returns a or for the given Peer public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// See Derived classes: , + /// Info about a chat folder deep link ». See Derived classes: , public abstract class Chatlists_ChatlistInviteBase : IObject { + /// Related chat information public virtual Dictionary Chats { get; } + /// Related user information public virtual Dictionary Users { get; } } - /// See + /// Updated info about a chat folder deep link » we already imported. See [TLDef(0xFA87F659)] public class Chatlists_ChatlistInviteAlready : Chatlists_ChatlistInviteBase, IPeerResolver { + /// ID of the imported folder public int filter_id; + /// New peers to be imported public Peer[] missing_peers; + /// Peers that were already imported public Peer[] already_peers; + /// Related chat information public Dictionary chats; + /// Related user information public Dictionary users; + /// Related chat information public override Dictionary Chats => chats; + /// Related user information public override Dictionary Users => users; /// returns a or for the given Peer public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// See + /// Info about a chat folder deep link ». See [TLDef(0x1DCD839D)] public class Chatlists_ChatlistInvite : Chatlists_ChatlistInviteBase, IPeerResolver { /// Extra bits of information, use flags.HasFlag(...) to test for those public Flags flags; + /// Name of the link public string title; + /// Emoji to use as icon for the folder. [IfFlag(0)] public string emoticon; + /// Supergroups and channels to join public Peer[] peers; + /// Related chat information public Dictionary chats; + /// Related user information public Dictionary users; [Flags] public enum Flags : uint @@ -14764,29 +14824,37 @@ namespace TL has_emoticon = 0x1, } + /// Related chat information public override Dictionary Chats => chats; + /// Related user information public override Dictionary Users => users; /// returns a or for the given Peer public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// See + /// Updated information about a chat folder deep link ». See [TLDef(0x93BD878D)] public class Chatlists_ChatlistUpdates : IObject, IPeerResolver { + /// New peers to join public Peer[] missing_peers; + /// Related chat information public Dictionary chats; + /// Related user information public Dictionary users; /// returns a or for the given Peer public IPeerInfo UserOrChat(Peer peer) => peer?.UserOrChat(users, chats); } - /// See + /// Localized information about a bot. See [TLDef(0xE8A775B0)] public class Bots_BotInfo : IObject { + /// Bot name public string name; + /// Bot about text public string about; + /// Bot description public string description; } } diff --git a/src/TL.SchemaFuncs.cs b/src/TL.SchemaFuncs.cs index f1b7b23..70ed69c 100644 --- a/src/TL.SchemaFuncs.cs +++ b/src/TL.SchemaFuncs.cs @@ -303,6 +303,7 @@ namespace TL /// Phone number /// Phone code hash returned by Auth_SendCode /// On Android, a JWS object obtained as described in the auth documentation » + /// Secret token received via an apple push notification public static Task Auth_RequestFirebaseSms(this Client client, string phone_number, string phone_code_hash, string safety_net_token = null, string ios_push_secret = null) => client.Invoke(new Auth_RequestFirebaseSms { @@ -313,7 +314,9 @@ namespace TL ios_push_secret = ios_push_secret, }); - /// See [bots: ✓] + /// Reset the login email ». See Possible codes: 400 (details) + /// Phone number of the account + /// Phone code hash, obtained as described in the documentation » public static Task Auth_ResetLoginEmail(this Client client, string phone_number, string phone_code_hash) => client.Invoke(new Auth_ResetLoginEmail { @@ -772,6 +775,7 @@ namespace TL }); /// Create and upload a new wallpaper See Possible codes: 400 (details) + /// Set this flag when uploading wallpapers to be passed to Messages_SetChatWallPaper. /// The JPG/PNG wallpaper /// MIME type of uploaded wallpaper /// Wallpaper settings @@ -1086,9 +1090,9 @@ namespace TL order = order, }); - /// Associate or dissociate a purchased fragment.com username to the currently logged-in user. See Possible codes: 400 (details) + /// Activate or deactivate a purchased fragment.com username associated to the currently logged-in user. See Possible codes: 400 (details) /// Username - /// Whether to associate or dissociate it + /// Whether to activate or deactivate it public static Task Account_ToggleUsername(this Client client, string username, bool active) => client.Invoke(new Account_ToggleUsername { @@ -3199,7 +3203,7 @@ namespace TL /// Add this reaction to the recent reactions list ». /// Peer /// Message ID to react to - /// Reaction (a UTF8 emoji) + /// A list of reactions public static Task Messages_SendReaction(this Client client, InputPeer peer, int msg_id, Reaction[] reaction = null, bool big = false, bool add_to_recent = false) => client.Invoke(new Messages_SendReaction { @@ -3527,7 +3531,9 @@ namespace TL { }); - /// See + /// Get information about extended media See + /// Peer + /// Message IDs public static Task Messages_GetExtendedMedia(this Client client, InputPeer peer, params int[] id) => client.Invoke(new Messages_GetExtendedMedia { @@ -3639,7 +3645,11 @@ namespace TL platform = platform, }); - /// See [bots: ✓] + /// Set a custom wallpaper » in a specific private chat with another user. See [bots: ✓] Possible codes: 400 (details) + /// The private chat where the wallpaper will be set + /// The wallpaper », obtained as described in the wallpaper documentation » or from a service message. + /// Wallpaper settings, obtained as described in the wallpaper documentation » or from .wallpaper.settings. + /// If the wallpaper was obtained from a service message, must contain the ID of that message. public static Task Messages_SetChatWallPaper(this Client client, InputPeer peer, InputWallPaperBase wallpaper = null, int? id = null, WallPaperSettings settings = null) => client.Invoke(new Messages_SetChatWallPaper { @@ -3687,8 +3697,9 @@ namespace TL limit = limit, }); - /// Installs a previously uploaded photo as a profile photo. See Possible codes: 400 (details) + /// Installs a previously uploaded photo as a profile photo. See [bots: ✓] Possible codes: 400 (details) /// If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. + /// Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. /// Input photo public static Task Photos_UpdateProfilePhoto(this Client client, InputPhoto id, InputUserBase bot = null, bool fallback = false) => client.Invoke(new Photos_UpdateProfilePhoto @@ -3698,8 +3709,9 @@ namespace TL id = id, }); - /// Updates current user profile photo. See Possible codes: 400 (details) + /// Updates current user profile photo. See [bots: ✓] Possible codes: 400 (details) /// If set, the chosen profile photo will be shown to users that can't display your main profile photo due to your privacy settings. + /// Can contain info of a bot we own, to change the profile photo of that bot, instead of the current user. /// Profile photo /// Animated profile picture video /// Floating point UNIX timestamp in seconds, indicating the frame of the video/sticker that should be used as static preview; can only be used if video or video_emoji_markup is set. @@ -3971,7 +3983,7 @@ namespace TL { }); - /// Internal use See Possible codes: 403 (details) + /// Can only be used by TSF members to obtain internal information. See Possible codes: 403 (details) /// User ID /// a null value means help.userInfoEmpty public static Task Help_GetUserInfo(this Client client, InputUserBase user_id) @@ -4474,10 +4486,10 @@ namespace TL order = order, }); - /// Associate or dissociate a purchased fragment.com username to a supergroup or channel. See [bots: ✓] Possible codes: 400 (details) + /// Activate or deactivate a purchased fragment.com username associated to a supergroup or channel we own. See [bots: ✓] Possible codes: 400 (details) /// Supergroup or channel /// Username - /// Whether to associate or dissociate the username + /// Whether to activate or deactivate the username public static Task Channels_ToggleUsername(this Client client, InputChannelBase channel, string username, bool active) => client.Invoke(new Channels_ToggleUsername { @@ -4722,8 +4734,10 @@ namespace TL admin_rights = admin_rights, }); - /// Set our about text and description (bots only) See [bots: ✓] Possible codes: 400 (details) + /// Set localized name, about text and description of a bot (or of the current account, if called by a bot). See [bots: ✓] Possible codes: 400 (details) + /// If called by a user, must contain the peer of a bot we own. /// Language code, if left empty update the fallback about text and description + /// New bot name /// New about text /// New description public static Task Bots_SetBotInfo(this Client client, string lang_code, string about = null, string description = null, InputUserBase bot = null, string name = null) @@ -4737,7 +4751,8 @@ namespace TL description = description, }); - /// Get our about text and description (bots only) See [bots: ✓] Possible codes: 400 (details) + /// Get localized name, about text and description of a bot (or of the current account, if called by a bot). See [bots: ✓] Possible codes: 400 (details) + /// If called by a user, must contain the peer of a bot we own. /// Language code, if left empty this method will return the fallback about text and description. public static Task Bots_GetBotInfo(this Client client, string lang_code, InputUserBase bot = null) => client.Invoke(new Bots_GetBotInfo @@ -4747,7 +4762,9 @@ namespace TL lang_code = lang_code, }); - /// See [bots: ✓] + /// Reorder usernames associated to a bot we own. See [bots: ✓] Possible codes: 400 (details) + /// The bot + /// The new order for active usernames. All active usernames must be specified. public static Task Bots_ReorderUsernames(this Client client, InputUserBase bot, params string[] order) => client.Invoke(new Bots_ReorderUsernames { @@ -4755,7 +4772,10 @@ namespace TL order = order, }); - /// See [bots: ✓] + /// Activate or deactivate a purchased fragment.com username associated to a bot we own. See [bots: ✓] Possible codes: 400 (details) + /// The bot + /// Username + /// Whether to activate or deactivate it public static Task Bots_ToggleUsername(this Client client, InputUserBase bot, string username, bool active) => client.Invoke(new Bots_ToggleUsername { @@ -5472,7 +5492,10 @@ namespace TL msg_id = msg_id, }); - /// See [bots: ✓] + /// Export a folder », creating a chat folder deep link ». See Possible codes: 400 (details) + /// The folder to export + /// An optional name for the link + /// The list of channels, group and supergroups to share with the link. Basic groups will automatically be converted to supergroups when invoking the method. public static Task Chatlists_ExportChatlistInvite(this Client client, InputChatlist chatlist, string title, params InputPeer[] peers) => client.Invoke(new Chatlists_ExportChatlistInvite { @@ -5481,7 +5504,9 @@ namespace TL peers = peers, }); - /// See [bots: ✓] + /// Delete a previously created chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// The related folder + /// slug obtained from the chat folder deep link ». public static Task Chatlists_DeleteExportedInvite(this Client client, InputChatlist chatlist, string slug) => client.Invoke(new Chatlists_DeleteExportedInvite { @@ -5489,7 +5514,11 @@ namespace TL slug = slug, }); - /// See [bots: ✓] + /// Edit a chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// Folder ID + /// slug obtained from the chat folder deep link ». + /// If set, sets a new name for the link + /// If set, changes the list of peers shared with the link public static Task Chatlists_EditExportedInvite(this Client client, InputChatlist chatlist, string slug, string title = null, InputPeer[] peers = null) => client.Invoke(new Chatlists_EditExportedInvite { @@ -5500,21 +5529,25 @@ namespace TL peers = peers, }); - /// See [bots: ✓] + /// List all chat folder deep links » associated to a folder See [bots: ✓] + /// The folder public static Task Chatlists_GetExportedInvites(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetExportedInvites { chatlist = chatlist, }); - /// See [bots: ✓] + /// Obtain information about a chat folder deep link ». See [bots: ✓] Possible codes: 400 (details) + /// slug obtained from the chat folder deep link » public static Task Chatlists_CheckChatlistInvite(this Client client, string slug) => client.Invoke(new Chatlists_CheckChatlistInvite { slug = slug, }); - /// See [bots: ✓] + /// Import a chat folder deep link », joining some or all the chats in the folder. See [bots: ✓] Possible codes: 400 (details) + /// slug obtained from a chat folder deep link ». + /// List of new chats to join, fetched using Chatlists_CheckChatlistInvite and filtered as specified in the documentation ». public static Task Chatlists_JoinChatlistInvite(this Client client, string slug, params InputPeer[] peers) => client.Invoke(new Chatlists_JoinChatlistInvite { @@ -5522,14 +5555,17 @@ namespace TL peers = peers, }); - /// See [bots: ✓] + /// Fetch new chats associated with an imported chat folder deep link ». Must be invoked at most every chatlist_update_period seconds (as per the related client configuration parameter »). See [bots: ✓] + /// The folder public static Task Chatlists_GetChatlistUpdates(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetChatlistUpdates { chatlist = chatlist, }); - /// See [bots: ✓] + /// Join channels and supergroups recently added to a chat folder deep link ». See [bots: ✓] + /// The folder + /// List of new chats to join, fetched using Chatlists_GetChatlistUpdates and filtered as specified in the documentation ». public static Task Chatlists_JoinChatlistUpdates(this Client client, InputChatlist chatlist, params InputPeer[] peers) => client.Invoke(new Chatlists_JoinChatlistUpdates { @@ -5537,21 +5573,25 @@ namespace TL peers = peers, }); - /// See [bots: ✓] + /// Dismiss new pending peers recently added to a chat folder deep link ». See [bots: ✓] + /// The folder public static Task Chatlists_HideChatlistUpdates(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_HideChatlistUpdates { chatlist = chatlist, }); - /// See [bots: ✓] + /// Returns identifiers of pinned or always included chats from a chat folder imported using a chat folder deep link », which are suggested to be left when the chat folder is deleted. See [bots: ✓] + /// Folder ID public static Task Chatlists_GetLeaveChatlistSuggestions(this Client client, InputChatlist chatlist) => client.Invoke(new Chatlists_GetLeaveChatlistSuggestions { chatlist = chatlist, }); - /// See [bots: ✓] + /// Delete a folder imported using a chat folder deep link » See [bots: ✓] + /// Folder ID + /// Also leave the specified channels and groups public static Task Chatlists_LeaveChatlist(this Client client, InputChatlist chatlist, params InputPeer[] peers) => client.Invoke(new Chatlists_LeaveChatlist {